SteelBridgeLabs / neo4j-gremlin-bolt

Apache License 2.0
0 stars 1 forks source link

Value map with tokens return map with id value set as null after vertex creation #85

Open samjkonat opened 4 years ago

samjkonat commented 4 years ago

Hi,

I am creating an application that is currently using AWS Neptune. To make it possible for it to use Neo4j in the future, I am writing traversals that will work for both Neptune and Neo4j. I am using the following code to create a new node and to get the details of the newly created node.

Map<Object, Object> vertex = g.addV("Person").property("name", "Marko").valueMap().with(WithOptions.tokens).next();

While working with Neptune, the vertex object will contain non null values for the following keys: id, label and name. While working with Neo4j through neo4j-gremlin-bolt, the vertex has null value for the key id. I don't have the option to use Graph.addVertex to create a vertex because Neptune does not support Graph operations.

Kindly let me know if there is a way to get around this problem.