fix: standardize GraphQL schema UUID field types (#13550)
Closes [#1264](https://github.com/twentyhq/core-team-issues/issues/1264)
This commit is contained in:
+3
-3
@@ -35,7 +35,7 @@ export class ObjectMetadataDTO {
|
||||
@IDField(() => UUIDScalarType)
|
||||
id: string;
|
||||
|
||||
@Field()
|
||||
@Field(() => UUIDScalarType)
|
||||
dataSourceId: string;
|
||||
|
||||
@Field()
|
||||
@@ -86,10 +86,10 @@ export class ObjectMetadataDTO {
|
||||
@Field()
|
||||
updatedAt: Date;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@Field(() => UUIDScalarType, { nullable: true })
|
||||
labelIdentifierFieldMetadataId?: string | null;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@Field(() => UUIDScalarType, { nullable: true })
|
||||
imageIdentifierFieldMetadataId?: string | null;
|
||||
|
||||
@Field()
|
||||
|
||||
+2
-2
@@ -61,12 +61,12 @@ export class UpdateObjectPayload {
|
||||
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
@Field({ nullable: true })
|
||||
@Field(() => UUIDScalarType, { nullable: true })
|
||||
labelIdentifierFieldMetadataId?: string;
|
||||
|
||||
@IsUUID()
|
||||
@IsOptional()
|
||||
@Field({ nullable: true })
|
||||
@Field(() => UUIDScalarType, { nullable: true })
|
||||
imageIdentifierFieldMetadataId?: string;
|
||||
|
||||
@IsBoolean()
|
||||
|
||||
Reference in New Issue
Block a user