custom scalar Object is coerced to empty object #1694
Unanswered
mohitjaimini9
asked this question in
General
Replies: 1 comment
-
Hello 👋 Hooks are used to specify various schema transforms. What you are looking for is a runtime behavior update to allow parsing this input. You would need to create custom data fetcher that correctly parses arguments (see #1520 for examples). Thanks, |
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
-
Hi Team,
I have used custom scalar Object/Json to receive a input json in the mutation. Use case is to keep value field a generic once where Any custom json object can be sent.
Example mutation call looks like following:
I have also defined customHooks as follows:
After doing all this, In mutation handler, i receive an empty object {} in value field. Can you please help me understand how can this be resolved ?
Beta Was this translation helpful? Give feedback.
All reactions