Nested maps are supported as constructs in cypher and expression results, return values but not in the underlying Neo4j storage.
On Sat, Oct 4, 2014 at 8:38 PM, brian <blevine...@gmail.com> wrote: > Note that this also doesn't work in Neo4j 2.1.5 even though the Cypher > refcard says that nested maps are supported. When I try this query, I get > the error: Neo.ClientError.Statement.InvalidType "Property values can > only be of primitive types or arrays thereof" > > > On Sunday, March 16, 2014 6:10:57 AM UTC-4, Marco Ippolito wrote: >> >> Hi Michael, >> >> is this the reason why with neo4j 2.01 the query taken from here: >> http://docs.neo4j.org/refcard/2.0/ >> MERGE (p:person {name:'Alice', age:38, address:{city:'London', >> residential:true}}) RETURN p; >> doesn't work? >> >> Error Message: >> "Map(city -> London, residential -> true) (of class >> scala.collection.immutable.Map$Map2) >> Neo.DatabaseError.Statement.ExecutionFailure" >> >> Marco >> >> On Wednesday, 12 February 2014 11:43:36 UTC+1, Michael Hunger wrote: >>> >>> Maps and nested collections/arrays are not supported (yet) as property >>> values. >>> >>> Cheers, >>> >>> Michael >>> >>> On Mon, Feb 10, 2014 at 11:32 PM, <loo...@gmail.com> wrote: >>> > Hi, >>> > >>> > shouldn't nested maps work within a CREATE statement ??? >>> > >>> > E.g.: >>> > >>> > CREATE (:ANV { >>> > a:'a', >>> > b:{ >>> > c:['c'], >>> > d:'d', >>> > e:'e', >>> > f:'f', >>> > g: {h:'h'}, >>> > h:'h' >>> > }}); >>> > >>> > >>> > results in >>> > >>> > Map(e -> e, f -> f, g -> Map(h -> h), c -> List(c), h -> h, d -> d) >>> (of >>> > class scala.collection.immutable.HashMap$HashTrieMap) >>> > >>> > Neo.DatabaseError.Statement.ExecutionFailure >>> > >>> > >>> > ??? >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Neo4j" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to neo4j+un...@googlegroups.com. >>> > For more options, visit https://groups.google.com/groups/opt_out. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.