Fixes #9827 Also uncovered a conflict with `@objectType('Relation')` and `@objectType('relation)` I don't want to address it in this PR so I will create a followup issue when we close this but I think there's a confusion between Relation/RelationMetadata, it's unclear what is what --------- Co-authored-by: Antoine Moreaux <moreaux.antoine@gmail.com>
13 lines
385 B
TypeScript
13 lines
385 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { IndexFieldMetadataItem } from '@/object-metadata/types/IndexFieldMetadataItem';
|
|
|
|
export const indexFieldMetadataItemSchema = z.object({
|
|
__typename: z.literal('IndexField'),
|
|
fieldMetadataId: z.string().uuid(),
|
|
id: z.string(),
|
|
createdAt: z.string(),
|
|
updatedAt: z.string(),
|
|
order: z.number(),
|
|
}) satisfies z.ZodType<IndexFieldMetadataItem>;
|