Mutation using HTTP and RDF

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.