neo4j - alternative relationship deprecated warning -


cypher query:

match (x) x.uuid = "41f64ab1-6009-4e95-b22b-c833525f6edb" match p =  (o)-[:contains|:having*]->(x) labels(o) in ['box', 'package'] return p 

running in neo4j browser results in warning:

**warning: feature deprecated , removed in future versions.**  semantics of using colon in separation of alternative relationship  types in conjunction use of variable binding, inlined property  predicates, or variable length change in future version. 

how can re-write query eliminate warning?

thanks in advance.

this might :

match (x) x.uuid = "41f64ab1-6009-4e95-b22b-c833525f6edb" match p = (o)-[*]->(x)  labels(o) in ['box', 'package'] , (rs in relationships(p) type(rs) in ['contains','having']) return p 

hope helps.

regards, tom


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -