@invisible/mongoose

Additional functions for working with Mongoose

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@invisible/mongoose
1.2.14 years ago5 years agoMinified + gzip package size for @invisible/mongoose in KB

Readme

@invisible/mongoose
CircleCI
This module wraps mongoose and exposes auxiliary methods.

Install

yarn add @invisible/mongoose
# or
npm install @invisible/mongoose

Usage

const { 
  mongoose,
  initConnection,
} = require('@invisible/mongoose')

initConnection('mongodb://localhost/test') // initialize a mongoose connection.

const { Schema } = mongoose // you can use mongoose normally.

const schema = new Schema({})
const Model = mongoose.model('Model', schema)

License

MIT