【问题标题】:How to save json as vertex properties values using gremlin query如何使用 gremlin 查询将 json 保存为顶点属性值
【发布时间】:2017-07-20 16:41:14
【问题描述】:

我正在尝试将 json 保存为顶点的属性值。以下是我的查询。

String createVrtx = "g.addV('Person').property('id','123').property('Address','{"City":"bang","pin": "123456"}')";

但获取运行时执行异常查询无法编译。

那么我要做什么来提交 json 作为顶点值。

【问题讨论】:

    标签: javascript java c# gremlin gremlin-server


    【解决方案1】:

    您可能需要转义 json 字符串中的双引号。 String createVrtx = "g.addV('Person').property('id','123').property('Address','{\"City\":\"bang\",\"pin\": \"123456\"}')";

    【讨论】:

      猜你喜欢
      • 2023-01-15
      • 1970-01-01
      • 2020-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多