【发布时间】:2023-09-05 08:56:01
【问题描述】:
我正在寻求有关高效 gremlin 查询的帮助,该查询以预期格式返回数据。
数据结构:
g.V('user').property('id','1').property('name','name 1').property('city','city1')
g.V('user').property('id','2').property('name','name 2').property('city','city2')
g.V('user').property('id','3').property('name','name 3').property('city','city3')
g.V('user').property('id','4').property('name','name 4').property('city','city4')
预期输出:
{
"count" : 4,
"users : [
{
"id" : "1",
"name" : "name 1"
},
{
"id" : "2",
"name" : "name 2"
},
{
"id" : "3",
"name" : "name 3"
},
{
"id" : "4",
"name" : "name 4"
}
]
}
非常感谢您对查询的任何帮助。
【问题讨论】:
标签: azure-cosmosdb gremlin tinkerpop3