我对 AQL 有疑问。在查询中,我搜索某个值并期望得到一个边缘包含搜索值的结果。看起来没问题,但我也得到一个空值。好像数据库里有空值,当然不应该。但是由于空值不符合要求,我很惊讶它出现了。
谁能解释一下,为什么会这样?
FOR v,e,p IN 1..10 Any 'myNode/12345' Graph 'My-Mesh' OPTIONS { uniqueVertices:'global', bfs:true } FILTER p.edges[*].MyId ALL == '50347099' RETURN DISTINCT e
示例结果:
[
null,
{
"_key": "50348764",
"_id": "relation/50348764",
"_from": "example1/123",
"_to": "Object/123123",
"_rev": "_Zb5VKba--D",
"properties": {},
"MyId ": "50347099"
},
{
"_key": "50348772",
"_id": "relation/50348772",
"_from": "example2/234",
"_to": "Object/345345",
"_rev": "_Zb5VKba--L",
"properties": {},
"MyId ": "50347099"
}
]