From 659f84e1219bb3f03fcb0d92e43a207d0e260a97 Mon Sep 17 00:00:00 2001 From: Ross Cruickshank Date: Tue, 8 Sep 2020 11:01:49 +0100 Subject: [PATCH] add cluster info --- storage/mongodb/README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/storage/mongodb/README.md b/storage/mongodb/README.md index 955f21e8..4565bc64 100644 --- a/storage/mongodb/README.md +++ b/storage/mongodb/README.md @@ -16,13 +16,23 @@ Install ------- Run the following command in your Node-RED user directory - typically `~/.node-red` - +``` npm install node-red-node-mongodb +``` +Note that this package requires a MongoDB client package at least version 3.6.1 - if you have an older (version 2) client, +you may need to remove that before installing this +``` + npm remove mongodb + npm install node-red-node-mongodb +``` Usage ----- -Nodes to save and retrieve data in a local MongoDB instance. +Nodes to save and retrieve data in a MongoDB instance - the database server can be local (mongodb//:localhost:27017), remote (mongodb://hostname.network:27017), +and sharded cluster (mongodb+srv://clustername.network). + +Reference [MongoDB docs](https://docs.mongodb.com/manual/reference/connection-string/) to see which connection method (host or clustered) to use for your MongoDB instance. ### Input