A Node-RED node that wraps the native MongoDB Node.js driver (v6) for database operations without limitations. Version 3.4.0 is current stable. Released on npm with monthly cadence. Unlike other Node-RED MongoDB nodes, this exposes full driver API via a flow node, supporting all CRUD, aggregation, and admin operations. Requires Node-RED >=3.0.0 and Node.js >=16.20.1. Compatible with MongoDB server versions 4.0-8.0.
npm install node-red-contrib-mongodb4No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to pass operation arguments via msg.payload array in Node-RED flow node.
Review the official MongoDB Node.js driver v6 upgrade guide: https://www.mongodb.com/docs/drivers/node/current/upgrade/#version-6.0-breaking-changes
Always wrap arguments in an array: msg.payload = [document] not msg.payload = document.
Use msg.payload = [pipeline];
Always set msg.payload to an array of arguments for the MongoDB driver method.
Change msg.payload = pipeline; to msg.payload = [pipeline];
Verify credentials and ensure authSource matches the database where the user is defined.
Check network connectivity and MongoDB server status; verify host/port in config node.
Check connection settings and ensure the config node shows connected status in the editor.