A reSolve (CQRS/event sourcing framework) adapter for persisting events in MongoDB. Version 0.23.2, part of the reSolve ecosystem, used with resolve-es. Provides a simple createAdapter function that expects a MongoDB URL and optional collection name. This package is deprecated in favor of newer reSolve storage adapters and should not be used for new projects. Alternative: @resolve-js/storage-mongo package.
npm install resolve-storage-mongoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and create the MongoDB event storage adapter with a connection string and optional collection name.
Replace 'resolve-storage-mongo' with '@resolve-js/storage-mongo' in package.json and imports.
Use import syntax or set 'type': 'module' in package.json.
Always explicitly specify collectionName to avoid conflicts.
Pass connection options in the URL string or use the 'options' parameter if available in newer versions.
Install the replacement: npm install @resolve-js/storage-mongo
Upgrade Node to >=12, or use dynamic import: const createAdapter = (await import('resolve-storage-mongo')).defaultUse const createAdapter = require('resolve-storage-mongo').default