-
|
hey everyone, I'm currently using GraphQL-ruby in one of my projects and found something curious. If I use Like this:
Whats the official support of this keyword in your ruby implementation of GraphQL? I couldn't find any mention of it in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi! Yes, in GraphQL, https://spec.graphql.org/draft/#sec-Null-Value
From that example, it seems to me that GraphQL-Ruby matches the spec. By that reading, for |
Beta Was this translation helpful? Give feedback.
-
|
Helow |
Beta Was this translation helpful? Give feedback.
Hi! Yes, in GraphQL,
nullmeans "the value here isnull", not "there is no value here." Here's the spec which I've tried to implement:https://spec.graphql.org/draft/#sec-Null-Value
From that example, it seems to me that GraphQL-Ruby matches the spec. By that reading, for
"hobby"to remain unchanged, don't pass"hobby": ...at all. Does that sound right to you?