nuxt-mongoose
nuxt-mongoose copied to clipboard
A Nuxt module for simplifying the use of Mongoose in your project.
Hello, I'm having difficulty defining models with TypeScript. Even though I've added Mongoose as a devDependency, I'm noticing some shortcomings in the generic declarations. If you'd like, I can do...
Hello, right now it seems like a connection to MongoDB is established when the Nuxt app starts. But when the app is deployed as a serverless function maybe a server...
I've tried to write some tests with vitest and nuxt-test-utils, but caught an error: `Failed to resolve import "#nuxt/mongoose" from "server/models/user.schema.ts". Does the file exist?`. Here is a reproduction, based...
I used a hook but it doesn't seem to hit the index ```bash hooks(schema) { schema.index({ name: 'text' }); } ```
When making some other changes to my code, all of a sudden this error started yesterday. It reproduces even with a starter project, once I start a nuxt project, install...