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.

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...