How to define JSON custom scalar type in graphql which can be nullable? #3981
Unanswered
Yifeng-Sigma
asked this question in
Q&A
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.
-
#3532 (comment)
I want to define a JSON custom scalar type which can be nullable.
after graphql 16,
serialize()
can not return null, so I'm getting GRAPHQL error {"errors":[{"message":"Expected JsonType.serialize("null") to return non-nullable value, returned: null" error where JsonType is my customized scalar.Wondering what's the recommended way to do this?
Beta Was this translation helpful? Give feedback.
All reactions