Replies: 1 comment
-
|
You can check whether that exists in your data fetcher using the Data Fetching Environment. The DFE gives you access to the input arguments that are passed in and only the fields that are set would be available there. Note that if you deserialize the input arguments into corresponding POJOs, you could lose that information since the optional fields would be automatically set to null. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
For example we have mutation:
doSomething(input: TestInput!) : SomeResponsewith next input:
Is it any way to know is null has been explicitly set to optionalField or hasn't been entered at all
Example with explicitly null
Example without explicitly null
Beta Was this translation helpful? Give feedback.
All reactions