为什么顶点删除请求不能删除Arangodb中与AQL链接的边? [英] Why vertex removing request doesn't remove linked edge with AQL in Arangodb?
问题描述
我有两个文档集合和一个边缘集合.我也有这个集合的图.
I have two document collections and one edge collection. Also I have a graph by this collections.
- 我可以在Arangodb中使用AQL查询从图形中删除顶点吗?
- 如何删除图形中的顶点,以便边缘也被删除?我需要使用Arangodb中的AQL查询来执行此操作.
如果我在图形界面中删除了顶点,那么链接的边也将被删除. 为什么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?
提前谢谢!
更新:
我在这里收到了答案:
何时图形一致性为在ArangoDB Java驱动程序中实现?
推荐答案
当前不通过AQL处理具有关联边的顶点的删除. 但是,可以设计一个执行此操作的查询.
Deleting vertices with associated edges is currently not handled via AQL. However it is possible to design a query that does it.
最近在ArangoDB中创建了有关如何通过AQL删除具有链接边缘的顶点的指南文档.
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.
这篇关于为什么顶点删除请求不能删除Arangodb中与AQL链接的边?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!