kvdmolen
(Klaas)
1
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)
?
Thanks!
1 Like
kvdmolen
(Klaas)
2
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.
MichelDiz
(Michel Diz)
3
Is it Dgraph-js-http? So you have solved?