cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Dynamic filtering

db.cypher_query("MATCH (a:User_A {name:{N}}) RETURN a", {"N": "kumarMary"} )--->it is working
i want check for Node also like

db.cypher_query("MATCH (a:{Node:{N}}) RETURN a",{"N":"User_A"} )---->not working but i want take input as a label and apply query.

2 REPLIES 2

It is not really possible to pass the label as a parameter. But you can do a workaround MATCH (a) WHERE {N} IN labels(a) RETURN a",{"N":"User_A"}

thank you so much...