The difference between replaceand updateis the replace will remove the current object and place another object to its position. The update is just to change the attribute ( value ) based on the object's key.
Update the whole object by writing down the name of it. You can also use destination path to point to the object you want to update.