Can you try something like this: MATCH (employees:Employee)-[reportType:B]->(gl:Employee {name: "MARK"}) RETURN gl,employees
-Sukaant Chaudhary <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479> On Sun, Nov 11, 2018 at 4:40 PM yev yev <yev...@gmail.com> wrote: > Hi all, > > I am new to Neo4j and have a basic question: > > I have employees graph with REPORT relationship, this relationship can > have 2 types of REPORT. > > And I want match all employees that REPORT to some employee with > relationship of type B. > > I tired this > > MATCH (employees)-[reportType:REPORT->(gl:Employee {name: "MARK"}) > WHERE reportType.type = "B" > RETURN gl,employees > > > but I am getting empty resultset (such link does exist in graph). > > -- > 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 neo4j+unsubscr...@googlegroups.com. > 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.