Any way to generate non-nullable fields? #6622
Unanswered
carlpaten-ivadolabs
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following GraphQL:
shipment_manifestis backed by a regular old Postgres table with two columns. This should never fail, and if it does I have no intelligent way of handling it in the client.Exporting my Hasura instance's GraphQL metadata and feeding it through dotansimha/graphql-code-generator using the plugin
typescript-graphql-requestI get the following:Note that
insert_shipping_manifestis both optional and aMaybe. I don't want this for a mutation that "can't possibly fail".Do I need to address this at the use site or is there a way to prevent this issue?
Beta Was this translation helpful? Give feedback.
All reactions