Reading and updating an existing document with a dynamic object