[
https://issues.apache.org/jira/browse/TINKERPOP-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18138486#comment-18138486
]
ASF GitHub Bot commented on TINKERPOP-3095:
-------------------------------------------
kenhuuu commented on PR #3727:
URL: https://github.com/apache/tinkerpop/pull/3727#issuecomment-6649344371
VOTE +1
> 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
> Priority: Critical
>
> 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
(v10.3.26#10030026)