import { Field, InputType } from '@nestjs/graphql'; import { ButtonInput } from './button.input'; @InputType('PageInput') export class PageInput { @Field() readonly show: boolean @Field({ nullable: true }) readonly title?: string @Field({ nullable: true }) readonly paragraph?: string @Field({ nullable: true }) readonly buttonText?: string @Field(() => [ButtonInput]) readonly buttons: ButtonInput[] }