Skip to content

Commit

Permalink
Feat!(filter-query): added prepaginate flag to query
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Jun 22, 2024
1 parent 5cd0edd commit 9b3d674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mongoose-filter-query/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const mongooseFilterQuery = (req, res, next) => {
}
req.query.include = req.query.include?.split(",");
req.query.select = req.query.select?.split(",")?.join(" ");
req.query.prepaginate = req.query.prepaginate === "true"
} catch (e) {
console.error("[ FilterQuery ] - Failed to parse query", e);
}
Expand Down

0 comments on commit 9b3d674

Please sign in to comment.