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