58fcb3cb0f
## What Replaces `@IDField(() => UUIDScalarType)` from `@ptc-org/nestjs-query-graphql` with the native `@Field(() => UUIDScalarType)` (`@nestjs/graphql`) across 50 DTOs and entities that are **not** wired to a nestjs-query auto-resolver. This continues the incremental migration off `@ptc-org/nestjs-query`. ## Why These 50 types only used `IDField` to type their `id` column as a UUID scalar. Since none of them are attached to a `NestjsQueryGraphQLModule.forFeature` resolver, `IDField` carries no extra behavior here — it's a plain field decorator. Co-authored-by: Abdul Rahman <abdulrahmancodes@users.noreply.github.com>
14 lines
362 B
TypeScript
14 lines
362 B
TypeScript
import { Field, InputType } from '@nestjs/graphql';
|
|
import { IsUUID } from 'class-validator';
|
|
|
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
|
|
|
@InputType()
|
|
export class DestroyViewInput {
|
|
@Field(() => UUIDScalarType, {
|
|
description: 'The id of the view to destroy.',
|
|
})
|
|
@IsUUID()
|
|
id: string;
|
|
}
|