A community node for n8n that adds advanced MongoDB operations including findOne, findMany, insert, update, delete, singleton pooling, automatic ObjectId conversion, and aggregation support. Version 1.0.8 is the latest stable release. This node is designed for n8n workflow automation, providing a richer set of MongoDB features than the built-in node, with a focus on performance and ease of use. Key differentiators include connection pooling and direct ObjectId handling.
npm install n8n-nodes-mongoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows usage of the MongoDB node in an n8n workflow, including credential setup and node configuration for a findMany operation with query and options.
In n8n, create a MongoDB credential with the required fields.
If you need ObjectId conversion on custom fields, manually convert using $toObjectId aggregation or pre-process the data.
Let n8n handle connection lifecycle. Avoid calling client.close() in workflow scripts.
Use JSON.stringify() or ensure manual input is valid JSON.
Install the node in n8n via Settings → Community Nodes → Install → n8n-nodes-mongo.
Use JSON.stringify() to convert objects to JSON strings, e.g., '{"status":"active"}'.Check the connection string (e.g., mongodb://user:pass@host:port/db) and ensure the database name is correct.
Verify the node's input schema and ensure the collection name is provided as a string.