@arcblock/swap-storage-mongo
v1.7.1
Published
Storage engine that uses mongodb for atomic swap
Downloads
123
Readme
@arcblock/swap-storage-mongo
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 |