# workflow-es-mongodb

> MongoDB provider for Workflow ES

Latest version **2.1.2** (published 2019-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install workflow-es-mongodb
pnpm add workflow-es-mongodb
yarn add workflow-es-mongodb
bun add workflow-es-mongodb
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2019-12-11 |
| First published | 2016-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 94.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 216 |
| Author | Daniel Gerlag |
| Maintainers | danielgerlag |
| Keywords | workflow, mongodb |

## Links

- npm: https://www.npmjs.com/package/workflow-es-mongodb
- Repository: https://github.com/danielgerlag/workflow-es
- Homepage: https://github.com/danielgerlag/workflow-es#readme
- Issues: https://github.com/danielgerlag/workflow-es/issues
- npm.io page: https://npm.io/package/workflow-es-mongodb

## Dependencies (5)

- [mongodb](https://npm.io/package/mongodb.md) ^3.2.7
- [inversify](https://npm.io/package/inversify.md) ^4.1.0
- [workflow-es](https://npm.io/package/workflow-es.md) ^2.1.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.10
- [json-stable-stringify](https://npm.io/package/json-stable-stringify.md) ^1.0.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 2.1.2 (latest) — 2019-12-11
- 2.1.1 — 2019-11-30
- 2.1.0 — 2018-03-25
- 2.0.2 — 2017-09-07
- 2.0.1 — 2017-06-10
- 2.0.0 — 2017-05-28
- 1.0.3 — 2017-03-03
- 1.0.2 — 2017-03-02
- 1.0.0-beta.7 — 2016-12-24
- 1.0.0-beta.6 — 2016-11-30
- 1.0.0-beta.5 — 2016-11-29
- 1.0.0-beta.4 — 2016-11-29
- 1.0.0-beta.1 — 2016-11-29

## README

# MongoDB Persistence provider for Workflow ES

Provides support to persist workflows running on [Workflow ES](https://github.com/danielgerlag/workflow-es) to a MongoDB database.

## Installing

Install the npm package "workflow-es-mongodb"

```
> npm install workflow-es-mongodb --save
```

## Usage

Use the .usePersistence() method when setting up your workflow host.

```javascript
const workflow_es = require("workflow-es");
const workflow_mongo = require("workflow-es-mongodb");
...
var config = workflow_es.configureWorkflow();
let mongoPersistence = new workflow_mongo.MongoDBPersistence("mongodb://127.0.0.1:27017/workflow-node");
await mongoPersistence.connect;    
config.usePersistence(mongoPersistence);
var host = config.getHost();
...
await host.start();
```

---
_Source: https://npm.io/package/workflow-es-mongodb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
