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,Folder3
and other group of nodes like FileA,FileB,FileC,FileD
.
The
Admin
node has an:access
relationship with propertyqty
for theFolder1,Folder2 and Folder3
.Each Folder nodes have
:next
relationship 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