Memgraph:“尚未实现:原子表达式”

问题描述 投票:0回答:1

我刚开始使用 Memgraph,有时会遇到错误消息:“尚未实现:原子表达式”。 首先我在尝试使用 neo4j-OGM 时观察到它,现在我在检查查询中的关系时遇到它。

我的查询如下所示:

memgraph> match(n {nameAST: "CallExpression"}) 
match(m) where not (n)-[:CG]->(m) and m.nameParseTree =~ n.nameParseTree 
return n;
Client received exception: Not yet implemented: atom expression '(n)-[:CG]->(m)' 

这里有什么帮助吗?我怎样才能避免这个错误?

neo4j graph-databases memgraphdb
1个回答
0
投票

Memgraph 中的特定函数支持表达式中的模式,例如

exists(pattern)
。在其他情况下,Memgraph 尚不支持函数中的模式,这就是您收到此错误的原因。

但是有一个快速修复方法可以避免此错误 - 使用

OPTIONAL MATCH
代替。查看 Memgraph 文档中的表达式中的模式,如果您设法修复它,请告诉我

© www.soinside.com 2019 - 2024. All rights reserved.