@palmabit/co-mongo-crud
v2.1.4
Published
Crud with mongoDb and co
Downloads
10
Readme
Co mongo crud
Crud with mongoDb and co. It works with node 6+.
Installation
npm install @palmabit/co-mongo-crud --save
Usage
const Crud = require('co-mongo-crud').Crud
const buildQueryOptions = require('co-mongo-crud').buildQueryOptions
const posts = new Crud('stringConnection', 'posts')
const options = buildQueryOptions('querystringparams', [])
crud.list(options, (err, docs) => {} )
Tests
npm test
Coverage
npm run-script coverage