expressjs / express-paginate

Paginate middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to send "skip" parameter?

piavgh opened this issue · comments

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.

Thanks @niftylettuce ,

Turn out that it has req.query.page :D