Can AQL set filter by edge type not attribute of the edge?

13 views
Skip to first unread message

Walt Li

unread,
Apr 20, 2019, 6:21:10 AM4/20/19
to ArangoDB
I have a question about AQL 

In The City Graph, we can use the distance attribute to filter the desired city node. 

But if I want to query the city that can be reached directly from Berlin by germanHighway. I don't want the internationalHighway.

How to query? 

Need I to make a attribute for  Edge germanHighway called "travel-method":"germanHighway" and Filter by the "travel-method" attribute?

Wilfried Gösgens

unread,
Apr 23, 2019, 6:37:17 AM4/23/19
to ArangoDB
Hi,
if you don't use the named graph, but use the 'collection sets' query method, you can specify which edge collections of a graph to include:


Cheers,
Willi
Reply all
Reply to author
Forward
0 new messages