I'm want to make a query like this one
g.V().match(
as('foo').hasLabel('bar'),
as('foo').out('baz').hasId('123'),
as('foo').out('baz').hasId('456')
)
.select('foo').by('id')
which is meant to select the id
s of all nodes of type bar
, which has baz
-typed edges to all the specified nodes.
However, CosmosDB only supports a subset of TinkerPop Gremlin, and match()
is among the traversal steps that are not supported.
What is a way to formulate the above query using only supported constructs?