orm/mongoose
Mongoose connection lifecycle and a starter model for a MongoDB project.
Provides: orm, orm:mongoose
Requires: database:mongodb
Conflicts with: orm
Files it writes
src/db/index.ts|jssrc/models/user.ts(whenprovides('language:typescript'))src/models/user.js(whenprovides('language:javascript'))
Dependencies
mongoose@^8.19.0
What it contributes to other files
| File | Slot | Line |
|---|---|---|
src/index.ts|js | imports | import { connectDatabase } from './db/index.js'; |
src/index.ts|js | bootstrap | await connectDatabase(); |
Use it
atarashi new my-app --add orm/mongoose
atarashi add orm/mongoose
Version 1.0.0. Format reference: Authoring blueprints.
Part of the atarashi documentation, written and maintained by Gautam Suthar.