dgraph-io/dgraph-js-http

setJson mutation failing APIError: Invalid mutation.

chandu0101 opened this issue · 1 comments

val txn = ctx.dgraph.newTxn()
val o = json(name = arg.input.name)
txn.mutate(DgraphMutation( setJson = o ))

above code is scala.js

Error :
APIError: Invalid mutation.

Note: setNquads is working fine ...

working fine on latest version of dgraph.