Hi Ravi,

MATCH (a:Person {name:"A"})
MATCH (a)-[:HAS_WIFE]->(d)
MATCH (a)-[:LIVES_IN]->(c)
MATCH (a)-[:HAS]->(b)

RETURN a,b,c,d

you can also join neo4j.com/slack and ask there.

Michael

On Mon, Dec 19, 2016 at 8:18 PM, <[email protected]> wrote:

> Hi All,
>
> I am new to Neo4J and learning to write queries. I had a scenario
> mentioned as in attached,
>
> I want to write a query to link all 4 labels so as to access their
> properties. I am confused on how to write relation from B to A and C to A.
> Thanks in Advance.
>
> Ravi
>
> --
> 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.
>

-- 
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.

Reply via email to