Moved from GitHub dgo/128
Posted by FlyingOnion:
If so, what formats or rules should the string obey?
Moved from GitHub dgo/128
Posted by FlyingOnion:
If so, what formats or rules should the string obey?
parasssh commented :
Can you elaborate? Did you mean query or mutation?
For mutation, the data must be JSON or RDF format.
For query, it must be GraphQL± query string described here https://dgraph.io/docs/query-language/ . Specifically, yes, you can omit multiple lines. Spaces are required to tokenize properly.
e.g.
{
result(func: has(director.film), first: 10) {
uid
expand(_all_)
}
}
can also be written as,
{result(func: has(director.film), first: 10) {uid expand(_all_)}}