How can I get a field of type array that allows nullable values when using the code-first approach in nestjs graphql.
The example shows that
@Field(type => [String])
ingredients: string[];
generates [String!]!
in the schema.gql
file. How can I get just [String]
? using {nullable: true}
gives me [String!]
I was hoping to find some type of utility or parameter in the @Field
decorator, but It seems it isn't