问题
I have two document collections and one edge collection. Also I have a graph by this collections.
- Can I remove vertex from graph with AQL query in Arangodb?
- How can I remove vertex in graph so that edge will be deleted too? I need to do this with AQL query in Arangodb.
If I remove vertex in graphical interface then linked edges is removed too. Why Arangodb doesn't support removing vertices together with their linked edges?
Thank you in advance!
UPDATE:
I have received the answer here:
When graph consistency will be implemented in ArangoDB java driver?
回答1:
Deleting vertices with associated edges is currently not handled via AQL. However it is possible to design a query that does it.
A guide on how to delete a vertex with its linked edges via AQL has recently been created in the ArangoDB documentation in the "Usual Query Patterns" section.
来源:https://stackoverflow.com/questions/51650374/why-vertex-removing-request-doesnt-remove-linked-edge-with-aql-in-arangodb