MongoDB persistence adapter for awaitly durable execution workflows. Version 23.0.0, maintained actively alongside awaitly core. Ships TypeScript types. Requires Node >=22 and awaitly ^1.33.0. Differentiates from generic MongoDB clients by tightly integrating with awaitly's workflow orchestration (state persistence, checkpointing, recovery). Breaking changes tracked against awaitly versions.
npm install awaitly-mongoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize MongoAdapter and attach it to Awaitly WorkflowClient for durable execution.
Upgrade Node.js to version 22 or higher.
Use 'mongodb+srv://' connection strings for Atlas clusters.
Call adapter.close() on process exit or SIGTERM.
Update awaitly to ^1.33.0.
Use the provided createIndexes() method after connecting.
Use async/await instead of callbacks.
Run 'npm install awaitly-mongo awaitly'
Change to 'import { MongoAdapter } from 'awaitly-mongo''Ensure new MongoAdapter({ url, database }) has valid configCheck MONGO_URL environment variable and network access