MATCH (n:Brand) WHERE exists (n.ID) and (n)-->(p:Product) RETURN n, p
Find brands which have an ID property and has a relationship with Product node. It shows the error: undefined 'p'. If I remove p and it works.
How to return both n and p in this query?