mavvystudio / prisma-generator-graphql-typedef

Generates graphql schema from prisma schema
12 stars 1 forks source link

Mandatory fields #195

Closed danielpaz6 closed 4 months ago

danielpaz6 commented 4 months ago

Some files that are mandatory need to be signed with "!" sign, from the example I don't see that it's the case for non default values.

mavvystudio commented 4 months ago

add one comment annotation:

@gqlNonNullElement

/// @gqlNonNullElement output: foobar: [Foo!]

then will treat a mandatory field if the type isn't optional