1602/jugglingdb — Issue #38: mongoose adapter: cannot specify sort direction
Author: TinNT
Created: 2012-02-28 06:25:01+00:00
State: open

MongooseAdapter.prototype.all = function all(model, filter, callback) {
...
if (filter.order) {
query.asc(filter.order); //direction is hardcoded
}
...
};

is there an easy way to patch this issue and define findOne method?

Thanks