-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nullable variables field in request payload #483
Comments
AFAIK, the spec doesn't prevent So de jure even |
What do you mean be
... but thanks, I think you answered my question: |
TL;DR; Current spec version doesn't enforce any particular format for
@elenigen I mean that nothing in the current version of GraphQL Specification prevent any value.
So with current spec text if you don't have any Moreover:
There are no references to |
When using The whole request has to be valid JSON. |
It looks like the specification is not clear if the client provides a request without variables, does the field "variables" should be assigned "null" or "{}" or both are valid?
Context:
In the altair tool, the default value is set to "{}" (without the double quotes) and in the graphql-java implementation, it's expecting a "null" value if not variables are needed. The result is, the queries are rejected on the server side, so does the server side is too stick or is it the client side which is providing the wrong value?
The text was updated successfully, but these errors were encountered: