Releases: dgraph-io/dgraph-js
Releases · dgraph-io/dgraph-js
v2.0.0
Added
doRequestfunction for performing upsert, or just a query or a mutation- Support for ACL features in Dgraph v1.1 - login & jwt refresh
upsertandlangfields to proto message type SchemaNode- Option for server-side sequencing
Changed
- Return type of
Txn#mutatefunction frommessages.Assignedtomessages.Response - Updated protobufs to the latest version
- Upgraded all typescript dev libraries to the latest version
Removed
- Support for null values where appropriate (because of typescript warning)
v1.2.1
v1.2.0
Added
-
[BREAKING] Optional
metadataparameter of typegrpc.Metadatato the
DgraphClientStubmethods.optionsparameter moved to the third position
to conform to thegrpcpackage API.Methods affected -
DgraphClient#alter,Txn#query,Txn#queryWithVars,
Txn#mutate,Txn#commitandTxn#discard.To upgrade to this version, if using any of these methods with the
options
parameter, simply add anullargument before theoptionsargument. For
example,client.alter(options)becomesclient.alter(null, options)
v1.1.2
v1.1.1
v1.1.0
v1.0.4
v1.0.3
v1.0.2
Added
- Method
DgraphClientStub#closeto close the grpc client associated withDgraphClientStub - Method
DgraphClientStub#grpcClientto return the grpc client associated with
DgraphClientStub - Method
DgraphClientStub#waitForReadyto provide a promisified version of
grpc.Client#waitForReady