Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eymon

0.0.3 • Public • Published

eymon

es6 classes promisifying communication with mongodb

NPM version

usage

details

StorageService currently supports:

  • create
  • read
  • update, updateInto, updateMany, updateManyInto
  • delete, deleteMany

examples

create my favorite color document

import eymon from 'eymon';
const service = new eymon.StorageService("playa");

service.create('color', {
    type: 'favorite',
    value: 'blue'
});

read my favorite color document

import eymon from 'eymon';
const service = new eymon.StorageService("playa");

service.read('color', {type: 'favorite'})
    .then( (resultSet) => {
        console.log(resultSet);
    })
    .catch( (error) => {
        console.log('error: ', error);
    });

Install

npm i eymon

DownloadsWeekly Downloads

1

Version

0.0.3

License

Apache-2.0

Unpacked Size

23.4 kB

Total Files

9

Last publish

Collaborators

  • avatar