match
Provides a more declarative form of graph querying based on pattern matching.
Synopsis
match(traversal\_fragment, ... )
Description
The match()
step is a map step provides a more declarative form of graph querying based on pattern matching.
Examples
Find the ingredients in the recipe for Beef Bourguignon:
g.V().match( __.as('INGREDIENT').hasLabel('ingredient'), __.as('INGREDIENT').out('includedIn').has('name','Beef Bourguignon')). select('INGREDIENT').by('name')