Neo4j nested relations loading using spring data repository


I am not able to load the nested relationships using neo4j repository. Any help is appreciated.

Accepted answer on StackOverflow:

As far as I understand, the default "depth" value on derived finders is 1.
If you want to load the whole hierarchy, try adding @Depth(value = 3) on top of your derived finder.
Your method should look like:

@Depth(value = 3)
List<Client> findAllByName(String name);

Link: https://stackoverflow.com/a/58869270/2650436