Looks like the documentation for matching on multiple relationship types is out of date?
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))'
Not sure how that's working for you but I found the relationship syntax in the deprecation notes:
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.