From 9b3d674155cfeefcde5534f8c5f3d9d7a8474f40 Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Sat, 22 Jun 2024 23:52:51 +0530 Subject: [PATCH] Feat!(filter-query): added prepaginate flag to query --- packages/mongoose-filter-query/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mongoose-filter-query/src/index.js b/packages/mongoose-filter-query/src/index.js index d886502..87728e0 100644 --- a/packages/mongoose-filter-query/src/index.js +++ b/packages/mongoose-filter-query/src/index.js @@ -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); }