{name: 'Alice', age: 38,
address: {city: 'London', residential: true}}
Literal maps are declared in curly braces much like property maps. Lists are supported.
WITH {person: {name: 'Anne', age: 25}} AS p
RETURN p.person.name
Access the property of a nested map.
MERGE (p:Person {name: $map.name})
ON CREATE SET p = $map
Maps can be passed in as parameters and used either as a map or by accessing keys.
MATCH (matchedNode:Person)
RETURN matchedNode
Nodes and relationships are returned as maps of their data.
map.name, map.age, map.children[0]
Map entries can be accessed by their keys. Invalid keys result in an error.
Comments