Search code examples
graph-databasesmemgraphdbopencypher

Failed query in Memgraph


I am trying to execute the following query from Memgraph's documentation:

MATCH (p:Person)
WHERE exists((p)-[:LIVING_IN]->(:Country {name: 'Germany'}))
RETURN p.name
ORDER BY p.name;

but I'm getting this error:

Query failed: Not yet implemented: atom expression '(p)-[:LIVING_IN]->(:Country{name:"a"})'

Is that a docs error or am I doing something wrong?


Solution

  • Did you check which version of Memgraph you're using? Exists seems like a newly implemented function, so you might be using the older version