import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import * as Scalars from 'graphql-scalars'; import * as Validator from 'class-validator'; @InputType() export class UserEmailNameCompoundUniqueInput { @Field(() => Scalars.GraphQLEmailAddress, {nullable:false}) email!: string; @Field(() => String, {nullable:false}) @Validator.MinLength(3) @Validator.MaxLength(50) name!: string; }