1.2.4 • Published 2 years ago
@dhaneshjoshi/adonis-mongoose v1.2.4
AdonisJS Mongoose
This package creates a Mongoose service for use in AdonisJS applications.
Install
Install mongoose and this package from npm:
npm install mongoose @dhaneshjoshi/adonis-mongooseor
pnpm install mongoose @dhaneshjoshi/adonis-mongooseor
yarn add mongoose @dhaneshjoshi/adonis-mongooseThen configure the package for Adonis:
node ace configure @dhaneshjoshi/adonis-mongooseConfiguration
Edit config/mongoose.ts as needed, then add the MongoDB connection URI to your .env file:
MONGODB_URI=mongodb://...