---
title: "Discussion on \"Implementing Mongoose Models with Next.js in TypeScript\" | Hashnode"
description: "Discussion on \"Implementing Mongoose Models with Next.js in TypeScript\". Learn how to implement mongoose models in TypeScript for Next.js that takes advantage of the type system for Development and Production."
url: "https://hashnode.com/posts/implementing-mongoose-models-with-nextjs-in-typescript/62e262c8d15a9fb24e5165ec"
---

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

Discussion

# [Implementing Mongoose Models with Next.js in TypeScript](https://blog.adwinang.dev/implementing-mongoose-models-with-nextjs-in-typescript?utm_source=hashnode&utm_medium=feed)

Learn how to implement mongoose models in TypeScript for Next.js that takes advantage of the type system for Development and Production.

Jul 28, 2022 · 3 min read · blog.adwinang.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#mongoose](https://hashnode.com/tag/mongoose)

## Written by

[Adwin Ang](https://hashnode.com/@adwinang)

@adwinang · Singapore

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

Director @ ClassBook Pte. Ltd.

I am a developer from Singapore who co-founded a company called ClassBook, a software company that provides business solutions for education companies. I embarked on the venture as I like to learn and understand the importance of enabling educators with tools to effectively teach and manage content for education.

## Responses 1

Markdown supported · ⌘↵ to post

[michael matta](https://hashnode.com/@mikhamatta)

[Feb 16, 2023](https://hashnode.com/posts/implementing-mongoose-models-with-nextjs-in-typescript/62e262c8d15a9fb24e5165ec/comment/63eeb19c3c9c765be7a45efd)

hi, how to trigger pre('save') middleware?
