我正在与OBJKT API合作以删除一些数据
文档 -
Explorer- https://data.objkt.com/explore/
这是我第一次使用GraphQl而且我很难正确编写查询的语法:
var data = '{"query":"event(where: {creator_address: {_eq: "tz1SmSqHY1nfy4Wyw9igVow4okezFB4ztXG2"}})"}';
我收到的错误是:
{"errors":[{"extensions":{"path":"$","code":"invalid-json"},"message":"Error in $: Failed reading: satisfy. Expecting ',' or '}' at 'tz1SmSqHY1nfy4Wyw9igVow4okezFB4ztXG2}})}'"}]}
我不明白在哪里放置或}
。发送正确格式的查询?
谢谢!
I'm working with the OBJKT API to pull some data
Documentation - https://data.objkt.com/docs/
Explorer - https://data.objkt.com/explore/
This is my first time using GraphQL and i'm having trouble writing the syntax for the query properly:
var data = '{"query":"event(where: {creator_address: {_eq: "tz1SmSqHY1nfy4Wyw9igVow4okezFB4ztXG2"}})"}';
The error I receive is:
{"errors":[{"extensions":{"path":"quot;,"code":"invalid-json"},"message":"Error in $: Failed reading: satisfy. Expecting ',' or '}' at 'tz1SmSqHY1nfy4Wyw9igVow4okezFB4ztXG2}})}'"}]}
I don't understand where to place the , or } .. I've tried escaping the double quotes surrounding tz1SmSqHY1nfy4Wyw9igVow4okezFB4ztXG2 but no luck
How can I send a properly formatted query?
Thanks!
发布评论
评论(1)
尝试一下,这应该对您有用
您只需要在其中放置额外的括号
try this, this should work for you
you just need to place extra pair of parenthesis inside where