I'm currently evaluating OGM / Spring Data Neo4j for a use case and came upon the following problem:
When executing a custom Cypher query either via Spring Data @Query
annotation or directly via the Neo4j Session
, the result contains only the nodes directly queried for and not the related nodes (relationships are null
in the resulting node objects). I.e. the depth for these queries seems to be 0 and not 1, as I would have expected from the docs.
How can I execute a custom Cypher query via OGM or Spring Data Neo4j that has depth 1?