Custom query in Spring Data Neo4j not retrieving relationships
<p>So for a few complex operations, I am using custom Cypher queries using the @Query annotation on my custom finder methods in my graph repositories. However, while it retrieves the node, it does not retrieve its direct relationships (i.e. only 1 level).</p>

<pre><code>@Query("match (node:T) return node Order by node.requestedAt Desc LIMIT 100")
List&lt;T&gt; last100T();

@Query("match (node:T) where node.status = \"REQUESTED\" and  timestamp() - node.requestedAt &gt;= 60000 return node")
List&lt;Transit&gt; findUnmatchedAndExpiredT();
</code></pre>

<p>I am using them like this - (code is in groovy):</p>

<pre><code> def nodes = TRepository.findUnmatchedAndExpiredT()
    nodes.forEach({
        node -&gt;
            node.status = TStatus.DECLINED
            node.neighbourA.status = NeighbourAStatus.BARRED
            def neighbourBQueue = client.queue(node.neighbourB.username)
            neighbourBQueue.push(mapper.writeValueAsString(node))

    TRepository.save(node)
})
</code></pre>

<p>They are related like so:</p>

<pre><code>    @NodeEntity
class T{

    public T(){
    }

    @GraphId
    Long id

    @Relationship(type = "REQUESTED_BY", direction = Relationship.OUTGOING)
    NeighbourB neighbourB

    @Relationship(type = "SERVICED_BY", direction = Relationship.OUTGOING)
    NeighbourA neighbourA
}
</code></pre>

<p>Both Neighbours A and B are null when the relationships do exist. What do? I'm using Spring boot 1.2.7.RELEASE with spring-data-neo4j:4.0.0.RELEASE</p>