A Seneca.js data storage plugin for MongoDB, version 5.0.1. Provides persistence using MongoDB for Seneca entity API. Supports standard Seneca query operations including sorting, limiting, skipping, and field selection. Connection via URI or key-based options. Works with Seneca 3.x. Uses native MongoDB driver under the hood. Active development with regular releases.
npm install seneca-mongo-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to connect to MongoDB, create an entity, save it, and list entities.
Upgrade to Seneca 3.x
Call si.use('entity') before si.use('mongo-store', ...)Use async/await or promises instead of callbacks for save$, load$, list$, remove$
Always use the $ suffix: save$, load$, list$, remove$
Ensure si.use('entity') is called before si.use('mongo-store')Use await or callback properly: const result = await entity.load$({id: '...'})Check MONGO_URI environment variable or options passed to .use()