You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to pass a JSON object as a string through mutation. I'm getting the following error and couldn't manage to fix it,
error: Body: {"errors":[{"message":"Syntax error","locations":[{"line":2,"column":159}],"extensions":{"name":"GraphQLError","time_thrown":"2020-04-09T19:51:20.587Z"}}]}
Looks like you may need to wrap your JSON in an extra set of "" as is most likely hitting the API as a nested GraphQL query, rather than a stringified JSON.
I tried to pass a JSON object as a string through mutation. I'm getting the following error and couldn't manage to fix it,
error:
Body: {"errors":[{"message":"Syntax error","locations":[{"line":2,"column":159}],"extensions":{"name":"GraphQLError","time_thrown":"2020-04-09T19:51:20.587Z"}}]}
my code is,
It throws error because of stringify JSON value of input field.
I would love some advice about how to properly pass in a JSON string as a query argument.
Thanks!
The text was updated successfully, but these errors were encountered: