@invisible/mongoose

    1.2.1 • Public • Published

    @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

    Keywords

    none

    Install

    npm i @invisible/mongoose

    DownloadsWeekly Downloads

    0

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    36.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • elseagle
    • gtaltemann
    • keenahn
    • invisible-bot
    • rodrigo4244
    • sirtimbly
    • pieterventer
    • scottdownes
    • zacksingh
    • el5091