【问题标题】:How to check the node/vertex/Edge is present in the Graph using Gremlin如何使用 Gremlin 检查图形中是否存在节点/顶点/边
【发布时间】:2021-05-18 09:48:36
【问题描述】:

如何使用Gremlin 查询检查Graph 中是否存在node/vertexedge

【问题讨论】:

    标签: database graph gremlin


    【解决方案1】:

    检查节点/顶点

       //Returns True or False
       g.V('id').hasNext()
    

    检查边缘

     //Returns True or False
     g.V('id).bothE().hasNext();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-02-25
      • 1970-01-01
      • 2021-10-11
      • 1970-01-01
      • 2011-04-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多