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.
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.
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.