Mutation using HTTP and RDF

I want to mutate data using RDF and the HTTP client.

The documentation only shows how to do that using JSON.
But I want to use the RDF format.

When I send {set{ ... }} like the standard RDF format I get an error on commit():

"startTs parameter is mandatory while trying to commit"

What should be the right format to use txn.mutate(dql)?


I found the way txn.mutate({ setNquads: query, commitNow: true })
So then also replacing commit().

query should contain only triples: "{set{ <query> }}". The {set{ is automatically added.

Is it Dgraph-js-http? So you have solved?