mgonto/restangular

Group by count

Opened this issue · 0 comments

Hi,
Thanks for this wornderful tool , its really very hepful . i am novice for this tools .my sincere apologies if i have raised a very basic query . have gone throught eh existing issues and help file couldn't get the answer.
My query is
i want to get a group by count from the server Eg: i am expecting the following output

'pr': 250
'pj': 500

for this command :

Program.getList({ group: 'type'}).then(function(resp){

console.log(resp)

})

i dont want to get all the 750 record in the client side and do a group by .

Cheers...