Renamed to:
https://www.npmjs.com/package/node-red-contrib-mongodb2
The node-red-contrib-mongodb2 supports all the collection operations of
api2 (for example: findOne, updateMany, etc.).
The input msg.payload can be an array of parameters to pass to the operation.
Update operations also have an "output" - for example, in case of upsert, I want to know if the operation created a new document or updated an existing one, so I could react on the first insertion differently than on the following updates.
I also separated the "find" operation (which returns a cursor) to "find.toArray" (sends a single message with an array of the results) and "find.forEach" (sends a message for each result).