简体   繁体   中英

Traverse through vertices using SELECT query, just like MATCH. Is it possible?

Traverse through vertices using SELECT query, just like MATCH. Is it possible in OrientDB?

SELECT statement allows you to traverse relationships using out()/in()/both() methods, eg. find friends of friends:

SELECT expand(out("FriendOf").out("FriendOf")) from Person WHERE name = 'John'

The SELECT in general is much less flexible than a MATCH, but it's powerful enough for basic use cases

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM