node-red-contrib-storage-mongo 1.0.4

Calls a MongoDB collection method based on the selected operator (Find or Insert)

npm install node-red-contrib-storage-mongo

node-red-contrib-storage-mongo

NodeRed NodeJS ESLint

Configs

To inform the URL, pass by the environment variable 'DB_URL' or msg.db_url To inform the DATABASE, pass by the environment variable 'DB_DATABASE' or msg.db_database To inform the COLLECTION, pass by the environment variable 'DB_COLLECTION' or msg.db_collection

Input

Calls a MongoDB collection method based on the selected operator.

Find queries a collection using the msg.query as the query statement as per the .find() function.

Optionally, you may also set

  • a msg.sort object,
  • a msg.limit number

The result is returned in msg.payload.

Insert creates a new obj with the configured properties and inserts in the database.

License

The node is available as open source under the terms of the MIT License.

Node Info

Version: 1.0.4
Updated 7 years, 2 months ago
License: MIT
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

24 in the last week

Nodes

  • storage-mongo

Keywords

  • node-red
  • storage-mongo
  • mongo

Maintainers

Contributors

  • Aline Castro
  • Gabriel Carmelo Noguchi