Valentyn Kahamlyk created TINKERPOP-3095:
--------------------------------------------
Summary: Provide a path for selecting script engine for traversals
in TP4
Key: TINKERPOP-3095
URL: https://issues.apache.org/jira/browse/TINKERPOP-3095
Project: TinkerPop
Issue Type: Improvement
Components: driver
Affects Versions: 4.0.0
Reporter: Valentyn Kahamlyk
For string queries there is now a simple way to select script engine which the
query will be executed
{code:java}
final RequestOptions ro =
RequestOptions.build().language("gremlin-lang").create();
final List result = client.submit("g.inject(1)", ro).toList();{code}
We need to do the same thing for traversal based requests, Something like
{code:java}
final GraphTraversalSource g =
traversal().with(DriverRemoteConnection.using(cluster)).with("language",
"gremlin-lang");
final List result = g.inject(1).toList());{code}
*or*
{code:java}
final GraphTraversalSource g =
traversal().with(DriverRemoteConnection.using(cluster, "g", "gremlin-lang));
final List result = g.inject(1).toList());{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)