Hi, I use graphcool web UI and i have a `not a val...
# orm-help
s
Hi, I use graphcool web UI and i have a
not a valid Json
error while trying to mutate a valid json. this is the full message:
Copy code
GraphQL error: The value in the field 'vatRate' is not a valid Json: '"{\"id\":\"cj0p2sac9e23q01110ycm0hfc\",\"name\":\"Aliquota 22%\",\"description\":\"Aliquota ordinaria 22%\",\"value\":22}"'
i get the same error if i use the object or the stringified version of it
n
do you get the error without the
%
characters as well?
s
hi nilan! it is something strange: now i am changing completely the fields but i got the same error with the previous fields (the one posted before) but i am checking variables just before the mutation and they are different! maybe something is "stuck"?
possible?
n
I'm afraid I can't quite follow 🙂
s
🙂
even if i change the object i submit i have always the same error message
n
it might be invalid Json in the existing data
s
the existing data is
Copy code
{
  "id": "cj0p2sac9e23q01110ycm0hfc",
  "name": "Aliquota 22%",
  "description": "Aliquota ordinaria 22%",
  "value": 22
}
that is the same... i don't know something is wired, because sometimes when i query the json fields the result is given sometime as string, sometime as object
now I tried to remove that element but i had another error... here is the request ID eu-west-1simplecjid9sv1a0yrf0155jwyjrjex