How to check and update multiple documents at once

Hi i have thousands of documents in a collection. What i am trying to do is i have an Api request every hour which gets me the latest data. Now i want to check each document in the collection and match its all fields with current api request and if any data/field is changed i want to update that document and then move on to next.
what will be the best approach for this?
Thanks

1 Like