Reputation: 1553
I have a edges collections with a "type" property.
What is an example of an AQL that traverse using only, for example,edge with type="A"?
Upvotes: 0
Views: 97
Reputation:
As could be expected, you use filters, e.g.:
FOR v, e, p IN 1..5 OUTBOUND 'collection/root' GRAPH 'graph'
FILTER p.edges[*].type == "A"
RETURN p
This query filters on the path p
, the 1..5
litmits the length of paths considered.
The documentation on traversals covers a lot of ground and gives examples to get you started: https://docs.arangodb.com/3.11/aql/graphs/traversals/
Upvotes: 1