title: ResultConsumedException with Micronaut and Neo4j: Cannot access records on this result any more as the result has already been consumed
body: <p>I'm attempting to get a simple app working with Micronaut 1.3.5 and Neo4J 4.0.0. I'm using the <code>io.micronaut.configuration:micronaut-neo4j-bolt:2.0.0</code> driver. I have code like this:</p>
  
  <pre><code>public Stream&lt;Map&lt;String, Object&gt;&gt; findAll() {
     try (Session s = driver.session()) {
         String stmt = "MATCH (n:Product) RETURN n";
         return s.readTransaction(tx -&gt; tx.run(stmt)).list(r -&gt; r.asMap()).stream();
     }
  }
  </code></pre>
  
  <p>And I'm getting the following exception:</p>
  
  <pre><code>result has already been consumed or the query runner where the result is created has already been closed.
  org.neo4j.driver.exceptions.ResultConsumedException: Cannot access records on this result any more as the result has already been consumed or the query runner where the result is created has already been closed.
  </code></pre>
  
  <p>I've done some googling and found a few things that would suggest this is normal behavior, but nothing that discusses the actual solution. I'm assuming it has something to do with the async nature of the driver/session.</p>