I'm trying store a map or json object as a property in Neo4j, but it doesn't work.
That's a limitation of node properties right now. You have a few workarounds to choose from.
You can turn your json object into a string and save it as a property. You can use APOC Procedures to convert JSON strings to and from Cypher map objects.
You can instead save the map properties as properties on the node, though that loses the grouping you would get from the object itself.
If #2 isn't enough, you could also alter your graph model so the data in the JSON object corresponds to graph objects, nodes and properties related to the original node.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With