我有一个类似于结构的文件夹树的图形,我想从特定的起点到图形中获取所有的顶点作为叶子。我用下面的AQL查询: FOR V in
GRAPH_NEIGHBORS("FolderTree",
{ "folderpath" : "/Cabinet 000001"},
{ direction : 'outbound',
maxDepth
我试图计算查询以基于可筛选选项,颜色,大小e.t.c过滤掉产品。 使用案例:获得具有尺寸8和红色 尝试1所有产品:使用交会 FOR product IN products
FILTER product.options != null
FOR productOption IN product.options
FILTER productOption.option =
许多(所有?)ArangoDB的图形函数接受一个“示例”文档。对于例如参数的文件说: {} : Returns all possible vertices for this graph
idString : Returns the vertex/edge with the id idString
[idString1, idString2 ...] : Returns the vertices
中删除子项 如何从文档中删除子项。所以说我有一个叫做销售的文档,每个销售都有一个sale.item,它包含{name,price,code}。 我想删除无效的每个项目,通过检查代码为空或空。 尝试类似下面的错误,不知道是否需要使用子查询和如何。 FOR sale in sales
FOR item in sale.items
FILTER item.code == ""
REMOVE