Since it's been a few days since I gave that query, I have a feeling that I 
Ctrl-C'ed or something and suspended the query, rather than it been running 
this whole time. But here it is in full:

db._query("FOR x in imdb_edges FILTER x.$label == \"DIRECTED\" COLLECT 
director = DOCUMENT(x._from), movie = DOCUMENT(x._to) FILTER director.name 
LIKE 'A%' AND movie.genre == 'Drama' RETURN director").toArray()

The attempt was to find all people whose name starts with A and have 
directed a drama.

On a related note, is there a better way to query a graph in this way? 
(i.e. find all vertices that meet certain conditions, rather than a 
traversal or shortest path). I may have been looking in the wrong places, 
but I couldn't find any examples of querying a graph directly - I believe 
that here I am not querying the graph, but rather the edge collection that 
is a part of the graph.

-- 
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