Closed
Description
Related code:
Intended outcome:
It's not very useful to have [object Object] come back as an error string. Maybe check to see if you can JSON.stringify it first and return that string instead.
Actual outcome:
Errors that have objects as messages come back as "GraphQL error: [object Object]"
How to reproduce the issue:
Have a graphql server return an error message as an object. If this is not a good pattern, how else can we supply object shaped data as an error? Sure, we could stringify it, but then to do something with it, we would need to parse it after we remove that "GraphQL error:" part.
Versions
latest,
2.4.6
Metadata
Metadata
Assignees
Labels
No labels
Activity