Hi Nick, 
edgeExamples only support direct matches. 

More versatile filter criterias are available in the pattern matching 
traversals.

They're documented here:
https://docs.arangodb.com/2.8/Aql/GraphTraversals.html

We have a nice example available howto work with the pattern matching on 
the routeplanner graph:

https://docs.arangodb.com/2.8/AqlExamples/CombiningGraphTraversals.html

You may i.e. want to filter on the distance attribute of the edges:

FOR v, e, p IN 1..1 OUTBOUND 'germanCity/Hamburg'
  GRAPH 'routeplanner'
  FILTER e.distance > 900
RETURN {traversedCity: v}`

you could of course use arbirtrary functions in these FILTER expressions.

Cheers, 
Willi

On Wednesday, May 4, 2016 at 12:04:44 AM UTC+2, Nick Wolf wrote:
>
> Hello folks,
>
> How to use advanced conditions other than "equal to" inside edgeExamples 
> filter?
>
> FOR e IN GRAPH_NEIGHBORS("
> ........> +"'routeplanner', {}, {edgeExamples : [{distance: 600}, {distance: 
> 700}, {route.indexOf('ABC') < 0}]}) RETURN e"
> ........> ).toArray();
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to