Hi ! @bettina.swynnerton. Denise suggested that I post this question to your attention.
DSE 6.7 Graph - what is the gremlin recipe to use traversal induced values in the predicate of a __.has( ,,) step
I am able to successfully execute the following traversal:
g.V().hasId("{cluster_key=\"kjjwg\", cluster_key2=\"1234\", ~label=widget, partition_key=\"57992577731\"}").as("srcW") .union( __.V().has("widget","property1",eq("xxx")), // property1 is indexed. The explicit value "xxx" is equal to select("srcW").values("property1") __.V().has("widget","property2",eq("abc")), // property2 is indexed. The explicit value "abc" is equal to select("srcW").values("property2") __.V().has("widget","property3",eq("123")) // property3 is indexed. The explicit value "123" is equal to select("srcW").values("property3") ).where(P.neq("srcW")).dedup()
I would like to be able to dynamically assign values to the has() steps for property1, property2, property3 from the "srcW) save point in a single traversal instead of executing 2 separate traversals from client to server.
I have tried variants of https://tinkerpop.apache.org/docs/current/recipes/#traversal-induced-values to no avail.
The target environment is the DSE Graph Fluent Java API.
Thank you