Maps

Cypher® supports the construction of maps.

For information about the property access operators . and [], see Map expressions → Map operators.
For information about how the [] operator behaves with respect to null, see Working with null → The [] operator and null.

Literal maps

The key names in a map must be literals. If returned through an HTTP API call, a JSON object will be returned. If returned in Java, an object of type java.util.Map<String,Object> will be returned.

Query
RETURN {key: 'Value', listKey: [{inner: 'Map1'}, {inner: 'Map2'}]} AS map
Table 1. Result
map

{'listKey': [{'inner': 'Map1'}, {'inner': 'Map2'}], 'key': 'Value'}

Rows: 1