【问题标题】:How to frame this query in gremlin如何在 gremlin 中构建此查询
【发布时间】:2021-11-09 14:30:50
【问题描述】:

我正在使用 Amazon Neptune 图形数据库。我有一个 Java 中的 SQL 查询。

select start_dt from maint_actv where rec_id = "+ Id + " and start_dt is not null limit 1

Q) Gremlin 中“start_dt is not null”如何表达?

【问题讨论】:

    标签: java gremlin amazon-neptune


    【解决方案1】:

    使用 Amazon Neptune 时,属性值不能为空。该属性要么存在于顶点或边上,要么不存在。你只需要测试那个存在。

    g.V().has(‘start_dt’)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-26
      • 1970-01-01
      • 2017-08-05
      • 2017-05-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多