Return n.name?,collect(m.name?) as incoming_Friends, Outgoing_Friends
Expected op:
Person A - Person B - Outgoing
Person A - Person C - Incoming
Is it possible to generate something like this?
--
Deepak
unread,
Sep 24, 2012, 4:37:15 AM9/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ne...@googlegroups.com
Michael,
The above query results the joining query result set in different column. Is it possible to union the result sets and put it under same column set like the sample out case in my previous post?
Thanks,
Deepak
Michael Hunger
unread,
Sep 24, 2012, 5:16:02 AM9/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ne...@googlegroups.com
with ...
return incoming_friends + outgoing_friends
Michael
> --
>
>
Andres Taylor
unread,
Sep 24, 2012, 5:41:11 AM9/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ne...@googlegroups.com
WITH is very different from UNION. SQL's UNION concatenates queries together, while WITH sends results from one query part, and uses it as context for the next query part.
We don't have UNION in Cypher. While you fake some parts of it using WITH-tricks, it's still not UNION.