cypher - Group by field in Neo4j -


i using neo4j 1.8.3

i running query return data

a   1  x   2  y b   3  z c   4  q c   5  x 

i data presented

a 1,2  x,y b 3    z c 4,5  q,x 

please let me know how can in cypher. in advance.

here's did when faced exact issue:

as far undetstood, there no way in 1 go in cypher. need use statement break query , let cypher collect nodes mid way , perform collect operations on subsequent matches. mean that? consider example:

if current query this:

match (a)--(b)--(c) return a,b,c 

then have change following

match {{ perform match here node type 'a' }} {{ conditions if }} match (a)--{{ perform match 'b' , 'c' here using 'a' }} return a,collect(b) first, collect(c) second order length(first, second) desc 

if understood i'm trying say, go ahead , give try. otherwise, best way move ahead create sample dataset in neo4j console, fire query , share here, can see against.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -