Cypher: Add "unwind" capability--the opposite of "collect" #30

Closed
lassewesth opened this Issue Nov 12, 2012 · 4 comments

Projects

None yet

4 participants

@lassewesth
Neo4j member

@wfreeman: 'If you have a property that's an array, it is sometimes useful to break that array up and return a cartesian product of the array and the rest of its record (for all result records).

I think this would be handy, especially used with group by and collect, to massage results.

The name unwind comes from MongoDB's aggregation framework function, but we don't have to call it the same thing:
http://docs.mongodb.org/manual/reference/aggregation/#_S_unwind

Partly inspired by: https://groups.google.com/d/topic/neo4j/DLpcOvvnpFA/discussion

I'll post some example use cases later. Any comments?'

@lassewesth
Neo4j member

strings:

@jakewins

Closing this as the first official "awesome but not right now" issue :)

@jakewins jakewins closed this Mar 4, 2013
@hchevuru

Any Idea if this has been done

@freeeve

It's in 2.1 so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment