title: Group By Query in Parse.com Cloud Code
body: <p>I'm trying to get the results of the following sql command in Parse.com using cloud code.</p>
  
  <p>Select shop, count(1) from Membership group by shop;</p>
  
  <p>Is there a way to do so? or I can only get the number of members from selecting each shop?</p>
  
  <pre><code>var query = new Parse.Query("Membership");
  query.equalTo("shop",shop_id);
  var promise = query.find().then(function(results){
          var number_of_membership_of_one_shop = results.leng
          return results;
      });
  </code></pre>