How to send "skip" parameter?
piavgh opened this issue · comments
Hoang Trinh commented
Hi everyone,
In your example, I see this code limit(req.query.limit).skip(req.skip).lean().exec(),
About the "limit" parameter, I can send it from client without problem (I'm using Axios)
But for the "skip" parameter, I don't know how to send that value? Because it doesn't belong to req.query, req.params or req.body.
How can I send the value for "skip"?
Thanks.
niftylettuce commented
Skip is automatically set for you! https://github.com/expressjs/express-paginate/blob/master/index.js#L111
Hoang Trinh commented
Thanks @niftylettuce ,
Turn out that it has req.query.page :D