I'm using GeddyJS framework for a NodeJS application.
I got stuck with a problem in setting limit while making a call to all() method in any model.
I tried providing limit as one of the option but its not working as expected.
geddy.model.User.all({userId: 1}, {sort:{createdAt: "desc"},limit:10}, function(err,data){
Any Help???
PS: We are using MongoDB as database.