Moved from GitHub dgraph-js/16
Posted by tav:
Would it be possible to add support for setting deadlines on individual calls with the dgraph-js
client?
Perhaps the calls could take an optional options
parameter? e.g.
await txn.mutate(mu, {deadline: 1516844615385})
As far as I can tell, the Dgraph Go client supports enforcing deadlines on individual calls, and from briefly looking at the Node.js gRPC implementation, it seems to support CallOptions
with a deadline
property too. So it should hopefully be just a matter of threading it through via the wrapper functions?