Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@arcblock/swap-storage-mongo

1.0.13 • Public • Published

@arcblock/swap-storage-mongo

styled with prettier

Storage engine that uses mongo to store data, implements interfaces defined in @arcblock/swap-storage.

Table of Contents

Install

npm install @arcblock/swap-storage-mongo
// or
yarn add @arcblock/swap-storage-mongo

Usage

const MongoStorage = require('@arcblock/swap-storage-mongo');
 
const storage = new MongoStorage({
  url: 'mongodb://localhost/forge-web-starter',
});
 
(async () => {
  const item = await storage.create({});
})();

Contributors

Name Website
wangshijun https://ocap.arcblock.io

Install

npm i @arcblock/swap-storage-mongo

DownloadsWeekly Downloads

1

Version

1.0.13

License

Apache-2.0

Unpacked Size

15.9 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar