I have two use cases that I’d love some guidance on:
-
Say I have nodes:
(mynode { name: "node1", complex_property_name_foo: "true" }) (mynode { name: "node2", complex_property_name_bar: "false" }) (mynode { name: "node3", other_property: "yay" })
How do I query for
mynode
s with properties that start withcomplex_property_name_
? -
How do I query for all the properties of a specific node? I looked here: https://s3.amazonaws.com/artifacts.opencypher.org/openCypher9.pdf for inspiration, and so I tried:
CALL db.propertyKeys() YIELD propertyKey MATCH (n:mynode { name: "node1" }) WHERE n[propertyKey] IS NOT NULL RETURN propertyKey
But that returns
Type mismatch: expected List but was Node