@warp-works/warpjs-mongo-persistence

2.0.3 • Public • Published

WarpWors/mongo-persistence

MongoDB persistence for WarpJS

Install

npm install --save @warp-works/mongo-persistence

Usage

const Persistence = require('@warp-works/warpjs-mongo-persistence');
const persistence = new Persistence('some-host', 'db-name');

persistence.documents('collection-name')
    .then(console.log)
    .finally(() => {
        persistence.close();
    });

Also see WarpJS-Persistence interface for more details.

Package Sidebar

Install

npm i @warp-works/warpjs-mongo-persistence

Weekly Downloads

15

Version

2.0.3

License

MIT

Unpacked Size

11.2 kB

Total Files

7

Last publish

Collaborators

  • matt-quoin
  • mficht
  • huuda.tran
  • slama