This package creates a Mongoose service for use in AdonisJS applications.
Install mongoose and this package from npm:
npm install mongoose @benhepburn/adonis-mongoose
or
pnpm install mongoose @benhepburn/adonis-mongoose
or
yarn add mongoose @benhepburn/adonis-mongoose
Then configure the package for Adonis:
node ace configure @benhepburn/adonis-mongoose
Edit config/mongoose.ts as needed, then add the MongoDB connection URI to your .env file:
MONGODB_URI=mongodb://...