Creates a new instance of GraphTraversalSource.
OptionalgremlinLang: default = ...Optional GremlinLang instance.
OptionalgraphTraversalSourceClass: typeof GraphTraversalSource = GraphTraversalSourceOptional GraphTraversalSource constructor.
OptionalgraphTraversalClass: typeof GraphTraversal = GraphTraversalOptional GraphTraversal constructor.
Optional Internal_Optional GraphTraversal constructor.
Optional GraphTraversalSource constructor.
Optional GremlinLang instance.
OptionalremoteRuns a unit of work inside a transaction, owning the full lifecycle.
The transaction is begun automatically and the resulting transaction-bound
GraphTraversalSource (gtx) is passed to the
callback as its sole argument. Only gtx is in scope inside the
callback, which avoids accidentally issuing traversals against the
non-transactional g.
On normal completion of the callback the transaction is committed; on any
abnormal exit (a thrown error or a rejected promise) the transaction is
rolled back. This is a single-shot operation: there is exactly one attempt
(begin -> run -> commit/rollback) and no retry. A second transaction may not
be opened from inside the callback (calling gtx.tx().begin()
throws via the existing double-begin guard).
The callback may be synchronous or asynchronous; its return value (or the
value its promise resolves to) is awaited and returned from
executeInTx. If the callback returns nothing the result is
undefined.
Error handling: if the callback throws/rejects, the original error is re-raised unchanged after rollback is attempted. If the commit itself fails, the commit error propagates and a rollback is still attempted afterward for server-side hygiene. In both cases a failed rollback during cleanup is logged as a warning and never replaces the primary error.
callback that receives the transaction-bound GraphTraversalSource
resolves to the callback's value (undefined if none)
Spawns a GraphTraversal by executing a declarative pattern match query.
the declarative query string
Optionalparams: Record<string, any>optional query parameters
Returns the string representation of the GraphTraversalSource.
Spawn a new Transaction object that can then start and stop a transaction.
Graph Traversal Source with method.
if not specified, the value with default to true
Graph Traversal Source withoutStrategies method.
Represents the primary DSL of the Gremlin traversal machine.