I am new to node-red and Mongo interactions and I am having trouble finding some clear examples of how to perform an update over a document.
I have a constant stream of data coming in my flow, that comes from different devices. every device has his corresponding document on a MongoDB instance which I would like to update every time I get something new from the sensor.
I have been trying with different nodes:
but can't create a working function node to pass the correct inputs to do an update.
I would like to overwrite the entire document each time and I am trying to filter the find on the device "name".
do you know of any example flow that performs update operations?