admit-one-mongo
v0.2.0
Published
Admit One adapter for Mongo
Downloads
4
Maintainers
Readme
Admit One Mongo
Admit One adapter for MongoDB.
Install
npm install admit-one admit-one-mongo
Usage
var admit = require('admit-one')('mongo', {
mongo: {
db: 'mongodb://localhost/dbname'
}
});
Once you have created an instance, see the main Admit One page for details on how to set up your routes with Express.
API
admit([options])
options.mongo.db
Type: String
Default: undefined
options.mongo.collection
Type: String
Default: 'users'
License
This project is distributed under the MIT license.