@invisible/mongoose

Additional functions for working with Mongoose

Stats

StarsIssuesVersionUpdatedCreatedSize
@invisible/mongoose
501.2.13 years ago4 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.