Use Object.assign for addTypenameToDocument.added.
Use Object.assign for addTypenameToDocument.added.

Another opportunity to apply @brainkim's suggestion from this comment:
https://github.com/apollographql/apollo-client/pull/8222#discussion_r633847490

apollographql/apollo-client,apollographql/apollo-client