Next.js is an amazing full-stack framework and MongoDB is a great NoSQL database. Using them together will make an app super fast and awesome! In this post, we'll go ahead and set up the Mongoose ODM inside our Next.js app to make use of MongoDB.
Table of contents
Setting up mongoose and the connection stringCreate a basic mongoose modelUsing mongoose in API routesCreate new document from front-endFetch and display documents2 Comments
Sort: