mongo-pipe-api

    0.0.11 • Public • Published

    mongo-pipe-api mongojs Promise API compatible with PromisePipes

    Mostly nodejs modules are not compatible with Promises.

    With mongo-pipe-api you can write your code like

    var PromisePipe = require('promise-pipe')();
    
    PromisePipe.use('db', MongoPipeApi('test', ['coll']));
    
    var putItemInDB = PromisePipe().db.insert.Item({item});
    
    putItemInDB.then(function(){
      //item is in Item collection
    })
    

    Keywords

    none

    Install

    npm i mongo-pipe-api

    DownloadsWeekly Downloads

    15

    Version

    0.0.11

    License

    ISC

    Last publish

    Collaborators

    • edjafarov