Does Gremlin support API for CRUD operations?

Currently using g.V() for read and g.addV() for write.
1 Reply
triggan
triggan11mo ago
Yes, addV(), addE() and property() are essentially all that makes up Create functionality. Read functionality can widely vary based on query structure. Vertex and Edge IDs are immutable, so updates are more related to properties. You can use the property() step directly for updating property values and can get more advanced through the use of mergeV() or mergeE() for updates. Deletes are handled through drop().