title: How to get a chain of nodes (Neo4j) with Spring Boot
body: <p>I have several NodeEntity classes, and they have relationships with each other:</p>
  
  <pre><code>@NodeEntity
  data class Person(
          ...
          @Relationship(type = "OWNS")
          var places: MutableSet&lt;Place&gt; = HashSet(),
  )
  
  @NodeEntity
  data class Place(
          ...
  
          @Relationship(type = "OWNS")
          var rooms: MutableSet&lt;Room&gt; = HashSet()
  )
  
  @NodeEntity
  data class Room(...)
  </code></pre>
  
  <p>Also, I use <code>Neo4jRepository</code> to work with the database. </p>
  
  <p>For example, I have a person with one place with two rooms. When I get a place, I can see these rooms. But when I get a person, I see only places with an empty set instead of rooms.</p>
  
  <p>Why does this happen? Turns out Neo4j returns only one relationship? </p>
  
  <p>Should I override some Neo4jRepository methods with <code>@Query</code>?</p>