OrientDB查询特定类型的边

OrientDB查询特定类型的边,orientdb,Orientdb,我有一个db(定义)类型的模式: 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 我想查询所有的T.V.1s,其中有edgeT.E.1和in类型只能是T.V.3。试试这个: select from <class-name> where <property-name> = "T.V.1" and out("<edge-

我有一个db(定义)类型的模式:

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

我想查询所有的
T.V.1
s,其中有edge
T.E.1
in
类型只能是
T.V.3

试试这个:

select from <class-name> where <property-name> = "T.V.1" and out("<edge-name>").<property-name> contains 'T.V.3'
从where=“T.V.1”和out(“”)中选择。包含“T.V.3”
希望能有帮助


关于。

tnx,请您发表意见,但正如我所说的,T.V.1是类型名称,而不是用户、城市、汽车等的值,所以,您能更好地解释一下吗?因为从您的模式来看,T.V.1似乎是一个顶点。