Skip to content

Commit 4aa610c

Browse files
committed
Added banner.
1 parent 5d6e834 commit 4aa610c

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![Banner](static/banner.jpg)
2+
13
# mongoose-aggregate-paginate-v2
24

35
[![npm version](https://img.shields.io/npm/v/mongoose-aggregate-paginate-v2.svg)](https://www.npmjs.com/package/mongoose-aggregate-paginate-v2)
@@ -269,23 +271,23 @@ This allows you to paginate the result at a given placeholder stage in a pipelin
269271
const pipeline = [
270272
{
271273
$match: {
272-
status: "active"
273-
}
274+
status: "active",
275+
},
274276
},
275277
{
276278
$sort: {
277-
date: -1
278-
}
279+
date: -1,
280+
},
279281
},
280282
"__PREPAGINATE__",
281283
{
282284
$lookup: {
283285
from: "authors",
284286
localField: "author",
285287
foreignField: "_id",
286-
as: "author"
287-
}
288-
}
288+
as: "author",
289+
},
290+
},
289291
];
290292
Model.aggregatePaginate(pipeline, options)
291293
.then(function (result) {

static/banner.jpg

202 KB
Loading

0 commit comments

Comments
 (0)