@benhepburn/adonis-mongoose
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

AdonisJS Mongoose

This package creates a Mongoose service for use in AdonisJS applications.

Install

Install mongoose from npm:

npm install mongoose

or

pnpm install mongoose

or

yarn add mongoose

Then, install the package:

npm install @benhepburn/adonis-mongoose

or

pnpm install @benhepburn/adonis-mongoose

or

yarn add @benhepburn/adonis-mongoose

Finally, configure the package for Adonis:

node ace configure @benhepburn/adonis-mongoose

Configuration

Edit config/mongoose.ts as needed, then add the MongoDB connection URI to your .env file:

MONGODB_URI=mongodb://...

Package Sidebar

Install

npm i @benhepburn/adonis-mongoose

Weekly Downloads

7

Version

1.2.0

License

MIT

Unpacked Size

13.1 kB

Total Files

16

Last publish

Collaborators

  • benhepburn