‎05-24-2020 10:38 PM
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?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
2 REPLIES 2
‎05-24-2020 11:05 PM
You need to have that product node in MATCH clause
‎05-25-2020 02:11 AM