【问题标题】:OrientDB query specific type of edgesOrientDB 查询特定类型的边
【发布时间】:2017-06-30 04:31:46
【问题描述】:

我有这个 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,其中边缘T.E.1in 类型仅为T.V.3

【问题讨论】:

    标签: orientdb


    【解决方案1】:

    试试这个:

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

    希望对你有帮助。

    问候。

    【讨论】:

    • tnx 供您发表评论,但正如我所说,T.V.1 是类型名称,而不是像用户、城市、汽车这样的值...
    • 那么,你能解释一下吗?因为从您的架构看来,T.V.1 是一个顶点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多