title: MongoDB aggregate allowDiskUse not working in Spring Boot
body: <p>I am trying to allowDiskUse but that won't work either and still get a warning <code>aggregation result exceeds maximum document size (16mb)</code></p>
  
  <p>I tried this but would throw the same warning again. What could be the reason?
  Is it that it will throw the warning but fetch the results or it will fail to fetch the results?</p>
  
  <pre><code>Aggregation aggregation = Aggregation.newAggregation(...).withOptions(Aggregation.newAggregationOptions().allowDiskUse(true).build());
  </code></pre>