Hello @enlightened
I believe it would have to be
xmlhttp.send(JSON.stringify({query: str}))
as str
is your query, correct? I should have made that clearer.
As for variables. You’re right and as discussed in @supernova’s post earlier: Can't change column value(s) Unfortunately the only way to get it working is with variables. May be a bug or if it’s not, the documentation should stress it more that variable is required. nudge @AlexSavchuk nudge
So if you’re going to add variables, you’ll just need to send it this way:
xmlhttp.send(JSON.stringify({query: str, variables: yourVariables}))