We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are two use cases of arg defaultValues that can't be expressed with ocaml-graphql-server.
Take the valid graphql schema:
type Query { field(argOne: String = "A" argTwo: String! = "B"): String! }
argTwo can't be expressed with ocaml-graphql-server.
argTwo
If the resolve function (in js to make it easier to demonstrate what is happening) looks like this:
resolve(_, {argOne, argTwo}) { return `${argOne}${argTwo}` }
A nullable arg can never be null in the resolver:
{ field(argOne: null) }
{"field": "B"}
Example of 2:
{ field(argTwo: null) }
{"errors": [{"message": "argTwo must be non-null"}]}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are two use cases of arg defaultValues that can't be expressed with ocaml-graphql-server.
Take the valid graphql schema:
argTwo
can't be expressed with ocaml-graphql-server.If the resolve function (in js to make it easier to demonstrate what is happening) looks like this:
A nullable arg can never be null in the resolver:
Example of 2:
The text was updated successfully, but these errors were encountered: