mongorepository
A node.js module that contains a generic implementation of the Repository Pattern for mongoDB.
Installation
The easiest way to install is through the Node Package Manager (NPM):
npm install mongorepository
Usage
//reference the repository objectvar Repository = Repository;//create an instancevar catRepository = 'username:password@localhost/dbname' 'cat';var cat =_id : 101name: 'trevor'//add catcatRepository;//get cat by idcatRepository;//find catquery = name: 'trevor'catRepository;//update catcatage = 4;catRepository;//delete catcatRepository;