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
given a field defined to return a List of some types:
field :some_field, [SomeType], null: false
if the resolve method for this returns an array of GraphQL::ExecutionErrors the actual result sent back to the client is:
GraphQL::ExecutionError
{ "data": null }
The actual errors are not included in the result.
The expected result would be something like:
{ "data": null "errors": [ { "message": "some error", "type": "runtime" }, { "message": "some other error", "type": "runtime" } ] }
note that the errors are included in the result if the field was defined as follows:
field :some_field, SomeType, null: false
This seems to be caused by this if statement here
Looks like a bug to me, will look at submitting a PR.
The text was updated successfully, but these errors were encountered:
PR: 2433
Sorry, something went wrong.
PR was merged.
No branches or pull requests
given a field defined to return a List of some types:
field :some_field, [SomeType], null: false
if the resolve method for this returns an array of
GraphQL::ExecutionError
s the actual result sent back to the client is:The actual errors are not included in the result.
The expected result would be something like:
note that the errors are included in the result if the field was defined as follows:
field :some_field, SomeType, null: false
This seems to be caused by this if statement here
Looks like a bug to me, will look at submitting a PR.
The text was updated successfully, but these errors were encountered: