Search code examples
amazon-web-servicestitangremlintinkerpop3

Titan on AWS- Prevent dropping of edges and vertex's


Is there a way to run a gremlin server so that the drop command is prevented? I never actually drop any edges or vertex's so I'd like the added assurance that it can't be done by mistake


Solution

  • You could have some luck developing your own TraversalStrategy and intercept the behavior of the .drop() step, preventing it to actually delete data. However, people could still be able to bypass the Gremlin/TinkerPop API and directly manipulate the graph instance and remove graph elements (Vertex, Edge and Property).

    Depending on your use case, you might just want to disable any mutation to the graph, and not just the removal of elements: