Open cjmling opened 2 years ago
use {nullable: true}
{nullable: true}
@ObjectType() @InputType('FilterInput') export class Filter { @Field(() => String, { nullable: true }) avgFilter: String; }
Apollo graphql field nullable optional
Or make the field no type specific and nullable
@Field({ nullable: true })
use
{nullable: true}
Apollo graphql field nullable optional