barrettc
barrettc
JJanusGraph
Created by barrettc on 10/9/2024 in #questions
Trying to connect to JanusGraph server/Cassandra with Kotlin client
I'm getting closer I think. I'm able to add a vertex using the following snippet that I found in a Stackoverflow answer.
val g = traversal().withRemote("janusgraph/conf/remote-graph.properties")
val tx = g.tx()
tx.open()
g.addV("tacos").property("name", "chicken").next()
val g = traversal().withRemote("janusgraph/conf/remote-graph.properties")
val tx = g.tx()
tx.open()
g.addV("tacos").property("name", "chicken").next()
However, what I really want to do is return g.graph so that I can use the org.apache.tinkerpop.gremlin.structure.Graph interface to be compatible with existing code in our project. When I try to modify the graph using the Graph instead of the GraphTraversalSource, I'm still seeing the error about not supporting addition of verticies.
2 replies