Amazon Neptune: Node Properties

烈酒焚心 提交于 2020-01-06 04:34:20

问题


I have ran the gremlin query and get the result but not able to get each vertex properties.

Here is the query I have ran:

g.V('a6b575a5-e2d3-334d-aa0b-5aa372d71fc0').outE('member').inV().unfold().toList()

Here is the result properties are undefined how to get?

2019-05-27T01:21:51.292Z    9f82a2ab-4271-406c-9601-0479899ccb61    [ Vertex {
id: '2cb575ab-d398-8a18-4c8c-4d5f6cca6076',
label: 'tribe',
properties: undefined },
Vertex {
id: '5eb575ad-59e5-0878-3d05-297c390b0479',
label: 'tribe',
properties: undefined } ]

回答1:


You should add the valueMap step at the end of the query.

g.V('a6b575a5-e2d3-334d-aa0b-5aa372d71fc0').outE('member').inV().valueMap(true).toList()



来源:https://stackoverflow.com/questions/56318697/amazon-neptune-node-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!