title: How to reset mongodb aggregation limit
body: <p>From mongodb cursor limit's docs</p>
  
  <blockquote>
    <p>A limit() value of 0 (i.e. .limit(0)) is equivalent to setting no
    limit.</p>
  </blockquote>
  
  <p>but I cant find way to reset query limit in <a href="https://docs.mongodb.org/manual/reference/operator/aggregation/limit/" rel="nofollow noreferrer">mongodb aggregation limit docs</a>.</p>
  
  <pre><code> const listQuery = query.limit(20).exec(); //  I need limit here
   query.limit(0); // error here
   const totalQuery = query.group(....).exec(); // No limit must be specified
  </code></pre>
  
  <p>I am getting error</p>
  
  <blockquote>
    <p>MongoError: the limit must be positive</p>
  </blockquote>
  
  <p>Thanks for replies!</p>