【问题标题】:Storing multiple lists in a single vertex in Gremlin - Cosmos DB在 Gremlin 中的单个顶点中存储多个列表 - Cosmos DB
【发布时间】:2021-11-07 05:05:01
【问题描述】:

在添加顶点本身的同时如何设计它?我看到我们必须为此使用.properties。但是我该如何处理多个列表呢?

{

"id": "95fcfa87-1c03-436d-b3ca-340cea926ee9",
"label": "person",
"type": "vertex",
 "States": [{
            "DeviceCount": "12",
            "SC_ItemStatus": "2",
            "SC_ItemWarningStatus": "0",
            "SC_SysemStandardPercentage": "1"
            }
           ],
 "log": [{
        "user": "user@user.dk",
        "action": "update",
        "timestamp": "22-03-2017",
        "field": "firstName",
        "oldValue": "Marco"
    }
]

}

【问题讨论】:

    标签: azure-cosmosdb azure-cosmosdb-gremlinapi


    【解决方案1】:
    g.addV("Person").
        property(single,"States","States" , "DeviceCount","12","SC_ItemStatus","2","SC_ItemWarningStatus","0","SC_SysemStandardPercentage","1").
        property(single,"Log","Log", "user","user@user.dk","action": "update","timestamp","22-03-2017","field", "firstName","oldValue", "Marco" );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-26
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-03
      • 1970-01-01
      • 2015-04-19
      相关资源
      最近更新 更多