MongoDB Repository
Installation
$ npm install --save mongodb-repository
Usage
'use strict' const MongoRepository = ; { superdb modelName; } // or if you dont need custom functionality const repo = db modelName;
Getting Started
'use strict'; const MongoClient = MongoClient; // configure a collection nameconst collection = 'cats';const MongoRepository = ; let repo; // connect to mongodbMongoClient
License
MIT © Ben Lugavere