Mongoose uses this method to paginate. SQL queries are used here to paginate the data from the database using limit and offset. NoSQL databases will be limited and skipped if you work on them. Page and limit are two parameters the client must supply in the request.