I am not getting this to work:
I have:
const args = {
"dgraph.type": "Post",
"Post.name": "some name",
"Post.description": "some description",
"Post.isPublished": true
};
const results = await dql.mutation(args);
And I get this error:
{"errors":[{"message":"while lexing [object Object] at line 1 column 0:
Unexpected character while identifying mutation block: U+005B '['","extensions":
{"code":"ErrorInvalidRequest"}}]}
I tried something like this to no avail:
const results = await dql.mutate({"set": [args]});
How do you actually call the mutation using the JSON Format?
Thanks,
J