It's depends of your case.
If you use a human form to update your list:
- just create a component that iterate over your documents, and save it on the same var.
If you have two list of document, "origin" and "updated".
Just do somethink like : origin = updated.