-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
Sometimes the returned object contains both errors and data, for instance when executing a query such as:
query {
fieldOk
fieldFailed
}If fieldFailed is null-able and during its resolve it fails, the return will be something like:
{"data": {"fieldOk": "value", "fieldFailed": null},
"errors": [{"message": "some error message", "paths": ["fieldFailed"]}]
}Then throwing an exception is not the best thing to do. My suggestion is to just pass-thru the result dict and let the user handle that -- but that breaks API, then you may consider a new execute() method.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels