---
title: "Discussion on \"Pagination in mongo-db with mongoose.js\n\n\n\" | Hashnode"
description: "Discussion on \"Pagination in mongo-db with mongoose.js\n\n\n\". Install pagination-v2 and aggregate-paginate-v2 . I have used zod for validation.\nimport z from \"zod\";\nimport mongoosePaginate from \"mongoose-paginate-v2\";\nimport mongoose, { AggregatePaginateModel }"
url: "https://hashnode.com/posts/pagination-in-mongo-db-with-mongoose-js/6a075ff373afc887579a86fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pagination in mongo-db with mongoose.js](https://soumabhasaha.hashnode.dev/pagination-in-mongo-db-with-mongoose-js?utm_source=hashnode&utm_medium=feed)

Install pagination-v2 and aggregate-paginate-v2 . I have used zod for validation. import z from "zod"; import mongoosePaginate from "mongoose-paginate-v2"; import mongoose, { AggregatePaginateModel }

May 15 · 2 min read · soumabhasaha.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#mongoose](https://hashnode.com/tag/mongoose)
-   [#pagination](https://hashnode.com/tag/pagination)
-   [#zod](https://hashnode.com/tag/zod)

## Written by

[Soumabha Saha](https://hashnode.com/@soumabhasaha15)

@soumabhasaha15 · Kolkata

  
[View profile](https://hashnode.com/@soumabhasaha15)

A geeky person

My name is Soumabha and I'm a CSE student and have a hobby of web development. Please subscribe to my channel for the upcoming tutorials.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
