title: How to get more than 1000 results Parse
body: <p>I have a cloud code which returns sometimes more than 1000 results , I am not getting how to chain query to get more than 1000 results in following code. </p>
  
  <pre><code>var User = Parse.Object.extend("Journal");
      var mainQuery = new Parse.Query(User);
  
      mainQuery.equalTo("user",username);     
  
  
      mainQuery.limit(1000);
      mainQuery.find({ 
          success: function(results) {
            count = 0;
            var avg = 0;
  
           console.log("self:"+results.length);
              for(j = 0; j &lt; results.length ; j++)
              {
                  var entry = results[j];
  
                  if(strcmp1(day,"All") != 0)
                  {
                      var dt = entry.get("created");
  
                      var weekDay = dt.getDay();
                      if(weekDay == day)
                      {
                         total += entry.get("Level");
                         count++;
                      }
                  }
                  else
                  {
                      total += entry.get("Level");
                      count++;
                  }
              }
  
              if(count &gt; 1)
                avg = total / count;
  
              response.success(avg);  
          }
      });
  </code></pre>
  
  <p>limit function is used for raising the default limit of 100 which is max 1000 per query result return cycle .</p>