Skip to content

Commit

Permalink
Added banner.
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindnc committed Jun 24, 2024
1 parent 5d6e834 commit 4aa610c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Banner](static/banner.jpg)

# mongoose-aggregate-paginate-v2

[![npm version](https://img.shields.io/npm/v/mongoose-aggregate-paginate-v2.svg)](https://www.npmjs.com/package/mongoose-aggregate-paginate-v2)
Expand Down Expand Up @@ -269,23 +271,23 @@ This allows you to paginate the result at a given placeholder stage in a pipelin
const pipeline = [
{
$match: {
status: "active"
}
status: "active",
},
},
{
$sort: {
date: -1
}
date: -1,
},
},
"__PREPAGINATE__",
{
$lookup: {
from: "authors",
localField: "author",
foreignField: "_id",
as: "author"
}
}
as: "author",
},
},
];
Model.aggregatePaginate(pipeline, options)
.then(function (result) {
Expand Down
Binary file added static/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4aa610c

Please sign in to comment.