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