Neo4j node property containing raw json as metadata Neo4j node property containing raw json as metadata json json

Neo4j node property containing raw json as metadata


That's going against the principles of properties. Why not set the properties in the JSON metadata directly on the node?

But to answer your question:

No, cypher has no knowledge about JSON.


We treat the entire Node as a JSON blob. Since Neo4j doesn't support hierarchical properties, we flatten out the JSON into delimited property names on save and unflatten them on read. You can then form Cypher queries on (for example) property name "foo.bar.baz". The queries tend to look a bit funky because you'll need to quote them using single back quotes, but it works.