Open
Description
I have not used this plugin yet but I am planning to. My questions:
- If I put all my models into a single file and name it
models.ts
, then put it directly intoserver
folder, in place ofmodels
folder, will it work? Will it need any non-default configurations? - I noticed
defineMongooseConnection
anddefineMongooseModel
methods inreadme.md
but cannot find them in Mongoose documentation. Why? Are these exclusive to nuxt-mongoose? If so, what about regular Mongoose functionality? Do I need something else to import to access them or importing themfrom '#nuxt/mongoose'
will be enough? - In which folder/file do I put the following code?
import { defineMongooseConnection } from '#nuxt/mongoose'
export const connection = defineMongooseConnection('mongodb://127.0.0.1/nuxt-mongoose')
Metadata
Metadata
Assignees
Labels
No labels