Fix ID type being used in place of UUID in graphql and metadata queries (#4905)
We have recently discovered that we were using ID type in place of UUID type in many place in the code. We have merged #4895 but this introduced bugs as we forgot to replace it everywhere
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
import { InputType, ID } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
import { IDField } from '@ptc-org/nestjs-query-graphql';
|
||||
|
||||
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
||||
|
||||
@InputType()
|
||||
export class DeleteOneFieldInput {
|
||||
@IDField(() => ID, { description: 'The id of the field to delete.' })
|
||||
@IDField(() => UUIDScalarType, {
|
||||
description: 'The id of the field to delete.',
|
||||
})
|
||||
id!: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user