Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    symfio-contrib-mongoosepublic

    symfio-contrib-mongoose

    Mongoose plugin for Symfio.

    Build Status Dependency Status

    Usage

    symfio = require "symfio"
     
    container = symfio "example"__dirname
     
    container.inject require "symfio-contrib-mongoose"
     
    container.inject (model) ->
      model "News""news"(mongoose) ->
        new mongoose.Schema
          title: String

    Configuration

    connectionString

    Default value is "mongodb://localhost/#{name}".

    Services

    mongoose

    Original mongoose module.

    mongodb

    Original mongodb module.

    connection

    Mongoose connection instance.

    model

    Model define helper. First argument is container key, second argument is collection name, last argument is a model factory.

    Keywords

    none

    install

    npm i symfio-contrib-mongoose

    Downloadslast 7 days

    1

    version

    2.0.7

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar