Hello I just started the mongodb with nodejs and react on the front side.
I’m looking for a way to do a “Put” request and change all the data at once
I have a model called “Vote” in which I want to add +1 , I would like to do it for all my database
Please provide sample input documents and expected result. Also share what you have tried and explain how it fails to provide you with the expected result.
Read before posting documents and code:
Method you need to update all documents:
The filter argument is {} to specify all documents.
The update parameter you need is