Setup
A Nuxt module for simplifying the use of Mongoose in your project.
Installation
- Install
nuxt-mongooseto your dependencies.
pnpm
pnpm add nuxt-mongoose -D- Add
nuxt-mongooseto themodulessection of yournuxt.configfile.
nuxt.config
export default defineNuxtConfig({
modules: [
'nuxt-mongoose',
],
})That's it! You can now use Mongoose in your Nuxt app ✨
Options
You can configure the module by adding a mongoose section to your nuxt.config file.
read more about Mongoose options.
nuxt.config
export default defineNuxtConfig({
mongoose: {
// Options
},
})Table of Contents