ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying dgraph-js DgraphClient for anything not wrapped here.
Runs a parameterized DQL query in a fresh transaction and returns the
parsed JSON result. vars binds DQL query variables (e.g.
{ $name: 'alice' }) sent separately from the query text. The
transaction is always discarded in a finally — a read-only query never
needs committing, and discarding releases its server-side resources.
Applies a JSON mutation (setJson) and commits it immediately
(commitNow: true), so no separate commit round trip is needed. The
transaction is discarded in a finally as a safety net (committed
transactions treat discard as a no-op).
Alters the schema by forwarding a DQL schema definition (DDL) to
client.alter({ schema }), e.g. 'name: string @index(exact) .'.
Drops all data and schema in the cluster via client.alter({ dropAll: true }).
DgraphStorewraps adgraph-jsDgraphClientand exposes Dgraph's real surface:query()for parameterized DQL reads,mutate()for JSON mutations (auto-committed), andalter()/dropAll()for schema/data management.