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

symfio-contrib-mongoose

2.0.7 • Public • Published

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

Downloadsweekly downloads

14

version

2.0.7

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar