Search code examples
cyphermemgraphdb

Is there in Cypher sometihg like RETURN all?


I have a code

MATCH (n1)-[r:CREATED_ON {manufactureDate: '11-03-2021'}]->(n2)
RETURN n1, r, n2;

Is there a shorthand to replace RETURN n1, r, n2; that would be equivalent to saying, "Return me all values of all nodes and relationships"? Like RETURN *.


Solution

  • As Kelvin Lawrence has said in comments, RETURN * exists, and it works. I just had a typo in my command.