Why vertex removing request doesn't remove linked edge with AQL in Arangodb?

浪尽此生 提交于 2019-12-13 03:56:37

问题


I have two document collections and one edge collection. Also I have a graph by this collections.

  1. Can I remove vertex from graph with AQL query in Arangodb?
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!