Re: Exception: IllegalStateException: The vertex or type is not associated with this transaction
Robert Dale <rob...@...>
Don't mix the Graph API and the Traversal API. Prefer the Traversal API. // in two traversals newNode = g.addV("B").property("x",x).property("y",y).property("z",z).property("w", w).next() g.V().hasLabel("A").has("x",x).has("y").addE("rt").to(V(newNode)).iterate() // In one traversal g.addV("B").property("x",x).property("y",y).property("z",z).property("w", w).as("newNode").V().hasLabel("A").has("x",x).has("y").addE("rt").to("newNode").iterate() g.tx().commit() Robert Dale On Mon, Jul 17, 2017 at 6:53 PM, aa5186 <arunab...@...> wrote:
|
|