Replies: 1 comment 4 replies
-
@cdomigan Have you had a look at the https://graphqlite.thecodingmachine.io/docs/input-types#multiple-input-types-from-the-same-class |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for this fantastic library!
I've researched multiple threads and PRs that reference this issue, and discuss solutions, but unfortunately I'm still left scratching my head about handling the following scenario:
null
value that represents unsetting the field value in the database.For eg say I have a
jobId
field in my Input type - I want this to take either anID
ornull
.But if I define it as:
... then in the situation where the
jobId
field is omitted, the value defaults tonull
(notuninitialized
as I was hoping), providing me with no way of distinguishing between an omitted value, and a providednull
value, and therefore potentially overwriting the value in the database.How do I distinguish between nullable and optional fields in GraphQL Input types, using this library?
Sorry if I have missed something obvious here! :)
Beta Was this translation helpful? Give feedback.
All reactions