{"repo":"csteinba/node-red-contrib-mongodb4","free":true,"listed":false,"github":"https://github.com/csteinba/node-red-contrib-mongodb4","clone":"git clone https://github.com/csteinba/node-red-contrib-mongodb4.git","description":"MongoDB driver node for Node-RED","language":"JavaScript","stars":27,"topics":["mongodb","node-red","nodejs"],"license":"MIT","category":"databases-storage","readme_excerpt":"node-red-contrib-mongodb4 A MongoDB driver node for Node-RED that exposes the native MongoDB Node.js driver features without limitations. This package provides two Node-RED nodes: - Config Node — manage MongoDB connections and connection pools. - Flow Node — perform database and collection operations using the native MongoDB driver API. Table of Contents - Installation - Quick Start - Compatibility - Configuration Node - Flow Node - BSON Types - Development - Links Installation From your /.node-red directory run: Quick Start 1. Add a MongoDB Config Node and configure the connection (URI or host/port, database, auth). 2. Add a MongoDB Flow Node and select the config node, operation and collection. 3. Pass operation arguments into msg.payload as an array — the array items are passed as function arguments to the driver. Examples Insert one document: Find with query and options: Aggregate (pipeline + options): Note: for aggregation you often end up with an array inside the payload array: msg.payload = [pipeline] . Compatibility - Node-RED = v3.0.0 - Node.js = v16.20.1 - Compatible with MongoDB server versions: 4.0, 4.2, 4.4, 5.0, 6.0, 7.0, 8.0 (depending on driver) Version 3.x of this package uses the MongoDB driver v6.12 and contains breaking changes from earlier driver major versions — see the official MongoDB driver upgrade notes: https://www.mongodb.com/docs/drivers/node/current/upgrade/#version-6.0-breaking-changes Configuration Node The config node creates a MongoClient and","default_branch":null,"files":null,"tree":[],"storefront":"/r/csteinba","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/csteinba/node-red-contrib-mongodb4/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}