mongoose-aggregate-paginate-v2
mongoose-aggregate-paginate-v2 copied to clipboard
A cursor based custom aggregate pagination library for Mongoose with customizable labels.
When I import this package like this: ``` import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import aggregatePaginate from 'mongoose-aggregate-paginate-v2'; @Schema({ timestamps: true, }) export class User { @Prop({ required:...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.4. Release notes Sourced from semver-regex's releases. v3.1.4 Backport of ReDoS fix https://github.com/sindresorhus/semver-regex/commit/7712ba564d40da101cf2b2b33e6a910d9f2f57f4 Commits 906cf40 3.1.4 7712ba5 Fix ReDoS vulnerability backport a0203db Fix ReDoS vulnerability...
in a part of the project I need to use mongoose-paginate-v2 and it works perfect  the problem occurs when I try to implement mongoose-aggregate-paginate-v2 in another data model ...
I'm sending a query with postman to an apollo server to get a list of users. This is my options object: ``` const options = { page: parseInt(page), limit: 15,...
Hi request you to enable "lean" option for aggregation
In the `mongoose-paginate-v2` package you can pass limit of 0 to return only the meta data and no docs. #### Zero limit You can use `limit=0` to get only metadata:...
``` { totalDocs: 'total', docs: 'docs', limit: 'limit', offset: 'offset', page: false, nextPage: false, prevPage: false, totalPages: false, pagingCounter: false, meta: false, hasPrevPage: false, hasNextPage: false, } ```
Trying to use this package in my project but I get error: "'@types/mongoose-aggregate-paginate-v2@latest' is not in the npm registry. Try `npm install @types/mongoose-aggregate-paginate-v2` if it exists or add a new...
I'm unable to use `$lookup` operator in `aggregatePaginate`. The expected result property (products in query below) is always null and excluded from the results document at all. It's otherwise working...