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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -