Quantified path patterns are not yet supported

Hi,

I am learning neo4j, and i installed neo4j destok version 5.3.0.
I'm trying the quantified path pattern but i have an error :

Quantified path patterns are not yet supported. (line 1, column 7 (offset: 6))
"MATCH ((l)-->(m)){1,2}"
^

CREATE
    (a:N {v: 1})-[:R]->(b1:N {v: 1.1})-[:R]->(c:N {v: 3}),
    (a)-[:R]->(b2:N {v: 1.2})-[:R]->(c),
    (a)-[:R]->(b3:N {v: 1.3})-[:R]->(c)    
RETURN a,b1,b2,b3,c;

MATCH ((l)-->(m)){1,2}
RETURN l,m

Hi,

Quantified path patterns were introduced in Neo4j 5.9, see docs.

To match paths of variable length In 5.3 you can use the variable-length relationships, documented here. Those have been available for a while, and continue to be available in the latest versions.

But I hope you will switch to a later version of Neo4j and play with Quantify path patterns. I think they are great.
This is an intermediate topic, and if you have not done it yet, please check the new Pattern section in the documentation.
Have fun

1 Like