Txn class

Constructors

Txn({Dgraph? dg, DgraphApi? dc, TxnContext? context})

Properties

context TxnContext?
getter/setter pair
dc DgraphApi?
getter/setter pair
dg Dgraph?
getter/setter pair
finished bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mutated bool
getter/setter pair
readOnly bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Commit(ClientContext ctx) Future<Null>
Discard(ClientContext ctx) Future<Null>
Do(ClientContext ctx, Request req) Future<Response>
mergeContext(TxnContext src) → void
Mutate(ClientContext ctx, Request req) Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Query(ClientContext ctx, String q) Future<Response>
QueryWithVars(ClientContext ctx, String q, Map<String, String>? vars) Future<Response>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ErrFinished → const String
ErrReadOnly → const String