add cluster info

This commit is contained in:
Ross Cruickshank 2020-09-08 11:01:49 +01:00 committed by GitHub
parent c1c8882f28
commit 659f84e121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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