UNPKG

@warp-works/warpjs-mongo-persistence

Version:

Mongo implementation for persistence layer of WarpWorks

21 lines (13 loc) 527 B
# 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](https://github.com/WarpWorks/warpjs-persistence) for more details.