简体   繁体   中英

OrientDB query specific type of edges

I have this db (definition) type schema:

Type.Vertex.1 --(Type.Edge.1)--> T.V.2
T.V.1 --(T.E.1)--> T.V.3
T.V.1 --(T.E.1)--> T.V.4

...

I want to query all TV1 s where has edge TE1 and in type be TV3 only.

Try this:

select from <class-name> where <property-name> = "T.V.1" and out("<edge-name>").<property-name> contains 'T.V.3'

Hope it helps.

Regards.

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