cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4j nested relations loading using spring data repository


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

1 REPLY 1

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