cancel
Showing results for 
Search instead for 
Did you mean: 

Neo4j nested relations loading using spring data repository

nightfly
Node


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

1 REPLY 1

gerrit_meier
Neo4j
Neo4j

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

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.