Not really sure I understand you:
something like this?
MATCH (:User {name:"me"})-[:FOLLOWS]->(u2:User)<-[:FOLLOWS]->(u3)
WITH collect(distinct u3) as users
UNWIND users as u
MATCH (u)-[r:FRIEND]-()
RETURN sum(case when r.Pending then 1 else 0 end), sum(case when r.Confirmed
then 1 else 0 end)
Michael
> Am 11.03.2015 um 10:54 schrieb Prashant Gangwar <[email protected]>:
>
> How to get two or more relationship data in a single query?
>
> Example -
> I have social network like database which have followers and friends
> relationship with multiple status on friends relationship like - Rejected ,
> Confirmed ,Pending as well
> Now i need to show User is following some other user or not and how many
> followers of other user and whats the status of friendship between those
> users .
> Is it possible in a single cypher query?
>
> Or gremlin query can help me on that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.