An adapter that allows Integreat to use MongoDB as a data source. Version 0.3.2 is the latest stable release, targeting Node >=12.9 and Integreat v0.6. It provides a simple configuration-based mapping from Integreat actions to MongoDB operations (find, update, delete). Unlike generic MongoDB drivers, it integrates natively with Integreat's authentication, paging, and query param system. Adheres to Integreat's adapter interface and uses resources pattern.
npm install integreat-adapter-mongodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes Integreat with the MongoDB adapter, configures a source with URI, then dispatches a GET action to retrieve documents.
Escape dots with double backslash in the path property of query objects.
Consider using bulkWrite operations for better performance.
Set auth: true in source definition when URI contains credentials.
Review adapter interface when upgrading Integreat.
Run `npm install integreat-adapter-mongodb` and ensure import path is correct.
Use `const mongodb = require('integreat-adapter-mongodb')` (no destructuring).Call `mongodbAdapter(integreat.resources())` before creating Integreat instance.
Verify URI credentials and set `auth: true` on source definition.
No dependency data recorded yet.