Committing changes
Closed this issue · 1 comments
mandolyte commented
After I add a vertex to Titan, I need to commit the change. My log shows my steps:
2016/07/29 07:32:03 Query:graph.addVertex(label, "part", "name", PART)
2016/07/29 07:32:03 Bindings:map[PART:P100]
2016/07/29 07:32:03 Results:<[{"id":20728,"label":"part","type":"vertex","properties":{"name":[{"id":"5y7-fzs-1l1","value":"P100"}]}}]>
2016/07/29 07:32:03 commit() Error:
Script Evaluation Error
I've tried a couple ways with same result:
_, commitErr := gremlin.Query(
graph.commit()).Exec()
and
_, commitErr := gremlin.Query(
g.commit()).Exec()
How should this be done?
mandolyte commented
Determination and more reading yielded this:
_, commitErr := gremlin.Query(
graph.tx().commit()).Exec()
Closing...