title: Nested Maps and Collections in Neo4j 2
body: <p>I understand that node and relationship properties are limited to primitive types or arrays of primitive types. The &quot;Maps&quot; section of the <a href="http://docs.neo4j.org/refcard/2.1/" rel="noreferrer">Neo4j 2.1 Reference Card</a> mentions that:</p>
  <blockquote>
  <p>{name:'Alice', age:38,
  address:{city:'London', residential:true}}</p>
  <p>Literal maps are declared in curly braces much like property maps. Nested maps and collections are supported.</p>
  </blockquote>
  <p>Of course something like:</p>
  <pre><code>CREATE (alice {name:'Alice', age:38, address:{city:'London', residential:true}})
  </code></pre>
  <p>throws an exception:</p>
  <pre><code>Error: Property values can only be of primitive types or arrays thereof Neo.ClientError.Statement.InvalidType
  </code></pre>
  <p>In what context does Neo4j support nested maps and collections?</p>