Re: [Neo4j] Adding new properties to an existing map

2016-07-03 Thread 'Michael Hunger' via Neo4j
You can do it with the apoc procedures There is eg apoc.map.setKey Von meinem iPhone gesendet > Am 29.06.2016 um 03:13 schrieb Jason Brumwell : > > I also would love this feature :) > >> On Tuesday, April 7, 2015 at 6:32:52 PM UTC-4, bi...@levelstory.com wrote: >> Yes, I thought about that but

Re: [Neo4j] Adding new properties to an existing map

2016-07-01 Thread Jason Brumwell
I also would love this feature :) On Tuesday, April 7, 2015 at 6:32:52 PM UTC-4, bi...@levelstory.com wrote: > > Yes, I thought about that but then I would need to unpack everything again > before I return the results. Being able to do SET map.key would be ideal, > I guess I'll just wait until

Re: [Neo4j] Adding new properties to an existing map

2015-04-07 Thread bill
Yes, I thought about that but then I would need to unpack everything again before I return the results. Being able to do SET map.key would be ideal, I guess I'll just wait until that becomes available. On Tuesday, April 7, 2015 at 3:14:50 PM UTC-7, Michael Hunger wrote: > > Hmm, > > what you

Re: [Neo4j] Adding new properties to an existing map

2015-04-07 Thread Michael Hunger
Hmm, what you could do instead of modifying the map in-place to create the new map with the additional data around the original one: e.g. >> WITH {a: "foo"} AS result >> RETURN {inner: result, b: "bar"} AS result We're also looking into a feature like: SET map.key = value But I can't give a

Re: [Neo4j] Adding new properties to an existing map

2015-04-07 Thread bill
Hi Michael, In order to reduce the number or rows resulting from complex queries, I bundle up the results of sub queries into a Map object. I then return a collection of Map objects which can then be easily converted into Go structs. I believe that you were the one that suggested this approac

Re: [Neo4j] Adding new properties to an existing map

2015-04-07 Thread Michael Hunger
Hey Bill, interesting what's your use-case for this? Thanks so much, Michael > Am 07.04.2015 um 21:24 schrieb b...@levelstory.com: > > Is there any way to add additional properties to an existing Map object? > > I thought I could use SET, but it doesn't work on maps: > > WITH {a: "foo"} AS r

[Neo4j] Adding new properties to an existing map

2015-04-07 Thread bill
Is there any way to add additional properties to an existing Map object? I thought I could use SET, but it doesn't work on maps: WITH {a: "foo"} AS result SET result.b = "bar" RETURN result Type mismatch: expected Node or Relationship but was Map (line 1, column 31) Because of this, I'm current