mongoose-model-loader
v0.0.6
Published
Load Mongoose models from a directory.
Downloads
19
Readme
mongoose-model-loader
Load Mongoose models from a directory.
Installation
$ npm install mongoose-model-loader
Usage
var loader = require('mongoose-model-loader')
var mongoose = require('mongoose')
// Load models from a directory
loader(__dirname + '/models')
// Access models
var MyModel = mongoose.model('MyModel')
var AnotherModel = mongoose.model('AnotherModel')
License
MIT