I am new to neo4j, I have the following situation
As shown in the figure above I have an Node Admin and nodes Folder1, Folder2,Folder3and other group of nodes like FileA,FileB,FileC,FileD.
The
Adminnode has an:accessrelationship with propertyqtyfor theFolder1,Folder2 and Folder3.Each Folder nodes have
:nextrelationship with respective File nodes as represented in the above figure.
Question :
How to write a Cypher query to return the distinct FileA , FileB ,FileC,FileD nodes from these folder nodes having maximum qty value?
I have tried,but I couldn't get it.
Please help, Thanks in advance