---
title: "Comment by michael matta on \"Implementing Mongoose Models with Next.js in TypeScript\" | Hashnode"
description: "hi, how to trigger pre(&#39;save&#39;) middleware?"
url: "https://hashnode.com/posts/implementing-mongoose-models-with-nextjs-in-typescript/62e262c8d15a9fb24e5165ec/comment/63eeb19c3c9c765be7a45efd"
---

[Discussion](https://hashnode.com/posts/implementing-mongoose-models-with-nextjs-in-typescript/62e262c8d15a9fb24e5165ec)

Comment [Implementing Mongoose Models with Next.js in TypeScript](https://hashnode.com/posts/implementing-mongoose-models-with-nextjs-in-typescript/62e262c8d15a9fb24e5165ec)

[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?
