You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment when a GraphQL query is generated it's possible to decide how to handle None values with the dropNullInputValues parameter, but this applies to all fields.
Unfortunately there are services that have semantic differences between a null value and a missing value, and requires a mix of both options in the same mutation. Shopify is one of this services, and currently it's impossible to use caliban to perform some operations because there isn't a fine grained control over it.
Honestly I don't know what might be the best approach to fix this issue.
The text was updated successfully, but these errors were encountered:
Thanks. If I'm understanding it correctly, it can work only with dropNullInputValues = false and by explicitely removing the null values for the encoding, not in the oppose way (default drop, with just a few specified), is it right?
Not super convenient, but it might work.
As an alternative I was thinking to add a new codegen parameter useNullableInputs to replace the binary Option with a ternary (or quaternary) Nullable type (accepting Null/Missing/Value(T) and Undefined) in the generated code. Would it make sense and something that you might want to merge?
At the moment when a GraphQL query is generated it's possible to decide how to handle
None
values with thedropNullInputValues
parameter, but this applies to all fields.Unfortunately there are services that have semantic differences between a
null
value and a missing value, and requires a mix of both options in the same mutation. Shopify is one of this services, and currently it's impossible to use caliban to perform some operations because there isn't a fine grained control over it.Honestly I don't know what might be the best approach to fix this issue.
The text was updated successfully, but these errors were encountered: