-
Chased a bug for an hour, then I realised that this library has a different name for sort (`sortBy`) than I'm used to from mongoose (`sort`).
In order to prevent backward incompatibility with older p…
surdu updated
9 years ago
-
Hello,
I have this kind of query:
(note it's with co and generators)
``` js
var item = yield Model
.findOne({ id: id })
.sort({ createdAt: -1 })
.lean()
```
or
``` js
... setup param…
AoDev updated
8 years ago
-
I'm using `mongoose-paginate@3.1.5` and I'm getting the server side error. I'm not sure why it's occurring...
```
/node_modules/mongoose-paginate/lib/mongoose-paginate.js:55
callback(null, data.…
-
**It doesn't work**
I'm using version 3.1.3
with critera `{name: { $regex: new RegExp("^" + name.toLowerCase()) }}`, mongoose-paginate returns empty result whereas mongoose returns 1 document.
-
# Description
- support pages
- support query
- require auth
- for admin, dave can only retrieve his own apps
- for root, peter can retrieve all apps
-
When I'm using mongoose, I can find and return the keys I need, just like: myModel.find(null,{name:true})
and the data come back will be[ {_id:xxx,name:xxx},{_id:yyy,name:yyy}] ……just like that.
can …
-
Hi!
There is convention in node.js, that callback is always the last argument of function. Current implementation of mongoose-paginate does not follow this convention and cause conflicts for example …
-
Could apply to all sorts of API & DB calls that return lists of some kind
-
On version 3.1.5, the data.results is passed twice on the callback.
The line:
``` js
callback(null, data.results, Math.ceil(data.count / resultsPerPage) || 1, data.results, data.count);
```
should …
-
Paginated in infinite scroll for messages.
Now it just loads everything into one long thread. Bad esp. for mobile performance.
There is [Waypoints](https://github.com/zumba/angular-waypoints) in use…