Replacing the entire document instead of updating it.

We'll have to be careful when sending only the fields that changed when using
dirty tracking to do updates