I am trying to return a Vertex (in tinkerpop format) that it was just created with Gremlin:
DseCluster dseCluster = DseCluster.builder()
.addContactPoint
According to the lengthy discussion I had with Datastax Team through jira and emails:
It is indeed possible to have Fluent API and get back pure Gremlin/tinkerpop objects. This is possible as illustrated here (java-dse graph 1.x documentation) using next(), toList() directly on GraphTraversalSource and not using executeGraph() which will return the DSE Objects.
So the above code changes to:
Vertex user = graph.addV("User")
.property("username", "testuser").next();
where graph
is a GraphTraversalSource
object and Vertex
is a org.apache.tinkerpop.gremlin.structure.Vertex
object.