neo4j - Can UNION and WITH play together? -
is there way use results of union in sub-query using clause?
i'm looking like
( match (me:person)-[:rates]->(r:rating)-[:rated_by]->(them:person) me.ident = {id} , r.date = {date} return them union match (me:person)<-[:rated_by]-(r:rating)<-[:rates]-(them:person) me.edent = {id} , r.date = {date} return them ) them return them.name, count( them.name) ratingcount order ratingcount desc limit 10
only nothing supported cypher.
and yes, know in case should using
match (me:person)-[:rates|rated_by]-(r:rating)-[:rates|rated_by]-(them:person) me.ident = {id} , r.date = {date} return them.name, count( them.name) ratingcount order ratingcount desc limit 10
which fine , dandy, think i'm going more complex requests down road won't work.
Comments
Post a Comment