Query by Example doesn't load relationships

In the Spring Data Neo4j Rx, using the Query-by-example doesn't seem to load the relationship in the imperative mode. Reactive mode works fine. If you query, for example,

movieRepository.findOneByTitle("The Matrix")

it returns the movie with actorsAndRoles and directors populated correctly. However, using,

movieRepository.findOne(Example.of(new MovieEntity("The Matrix", null)))

returns the movie without actorsAndRoles and directors populated.

MovieRepository in this case extends Neo4jRepository,

MovieRepository extends Neo4jRepository

Is this by design? Is there a way I can get the loaded relationship data when using Example ?

Thanks

Thanks for the finding. I created an issue https://jira.spring.io/browse/DATAGRAPH-1384 to track this.
The findByExample does not query right now for the relationships in imperative and reactive programming mode.

1 Like