Search code examples
amazon-web-servicesgremlinamazon-neptune

Amazon Neptune: Node Properties


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 } ]

Solution

  • 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()