Deprecated Neo4j 4.0 Cypher: Relationship Types

Looks like the documentation for matching on multiple relationship types is out of date?

https://neo4j.com/docs/cypher-manual/current/clauses/match/#match-on-multiple-rel-types

Caused by: org.neo4j.ogm.exception.CypherException: Cypher execution failed with code 'Neo.ClientError.Statement.SyntaxError': The semantics of using colon in the separation of alternative relationship types in conjunction with
the use of variable binding, inlined property predicates, or variable length is no longer supported.
Please separate the relationships types using `:A|B|C` instead (line 1, column 214 (offset: 213))'

Hi @mike.blum_neo4j
Matching Multiple relationship works

MATCH path =()-[:InFLOW|:OutFLOW]-() return path
image

Please let us know if you are facing any specific problem

This issue affects a 4.0 database but this works in < 4.0 databases:

MATCH path =()-[:InFLOW|:OutFLOW]-() return path

but the same query in my 4.0.3 install throws:

image

It is working for both the sytanx [rel:A|:B] and [rel:A|B]

Not sure how that's working for you but I found the relationship syntax in the deprecation notes:

https://neo4j.com/docs/cypher-manual/current/deprecations-additions-removals-compatibility/#cypher-deprecations-additions-removals-4.0

MATCH (n)-[:A|:B|:C {foo: 'bar'}]-() RETURN n

Syntax

Removed

Replaced by MATCH (n)-[:A|B|C {foo: 'bar'}]-() RETURN n

MATCH (n)-[x:A|:B|:C]-() RETURN n

Syntax

Removed

Replaced by MATCH (n)-[x:A|B|C]-() RETURN n

MATCH (n)-[x:A|:B|:C*]-() RETURN n

Syntax

Removed

Replaced by MATCH (n)-[x:A|B|C*]-() RETURN n

Regardless if it somehow still works in 4.0.x I think the docs need to be updated to be in alignment with the deprecation notes.