I am trying to find all the children of a particular node.
match(t:TAG)<-[children:CHILD_OF]-(subtag:TAG) where t.name="brand" return t.name, subtag.name
I am getting the correct result from the query above. But I am doubtful that this query is efficient. As it is first getting all the relationships of "tagA is a child of tagB" and then filtering it where tagB is as given.
There must be a better way to write this. Please help.