nuxt-mongoose icon indicating copy to clipboard operation
nuxt-mongoose copied to clipboard

A Nuxt module for simplifying the use of Mongoose in your project.

Results 16 nuxt-mongoose issues
Sort by recently updated
recently updated
newest added

It seem the URI is required during build time. Is it possible to use runtime config so when I dockerize the application i can do something like ``` docker run...

hello, I'm trying to deploy my application in production. and I encountered a problem when executing API requests once the application is deployed which returns me error 500 TodoSchema is...

Thanks, this plugin looks amazing! It works fine on my local dev but deploying to Vercel Edge Functions I get the following error: > [17:58:03.988] [success] Server built in 7799ms...

PR welcome

I just learned how to use [Discriminators](https://mongoosejs.com/docs/discriminators.html) and I think it has great potential. I checked the pull request "[add discriminators.ts helper](https://github.com/arashsheyda/nuxt-mongoose/pull/47)" by @jbool24 about this issue, but I think...

Not sure if this is an issue with the module but I'm having an issue when running nuxt in dev. I get this error [worker reload] [worker init] Package import...

I have two models, `Photo` which holds a reference to `Location`. With the following endpoint ```ts import Photo from "~/server/models/Photo" export default defineEventHandler(async (event) => { try { return await...

bug
PR welcome

On the recent Nuxt 3.11 I see this error, and the app is not starting: ``` ✔ Connected to MongoDB ERROR Error connecting to MongoDB: Error: Context is not available...

not working code ``` // tenant-isolation.js import Utils from '~/server/Utils'; export default defineNuxtPlugin({ name: 'switch-tenant-db', async setup(nuxtApp) { const url = nuxtApp.ssrContext?.event?.node?.req?.url; console.log("url is:", url); if (url == "/my" ||...

When trying to add default value it's giving typescript error. ![image](https://github.com/arashsheyda/nuxt-mongoose/assets/66431066/fe74c135-e2ef-4ee6-95b0-a236394ee2e7) ``` import { defineMongooseModel } from '#nuxt/mongoose' export const UserSchema = defineMongooseModel({ name: 'User', schema: { id: { type:...

PR welcome

I have not used this plugin yet but I am planning to. My questions: 1. If I put all my models into a single file and name it `models.ts`, then...