import { Field, ID, InputType } from '@nestjs/graphql'; import GraphQLJSON from 'graphql-type-json'; @InputType() export class UniversalEntityInput { @Field(() => ID, { nullable: true }) id?: string; @Field(() => GraphQLJSON, { nullable: true }) data?: Record; @Field(() => Date, { nullable: true }) createdAt?: Date; @Field(() => Date, { nullable: true }) updatedAt?: Date; }