For example, I have a collection, such as User, with one field name (and default _id field). I insert some documents to this collection.
Then I want to add a field emails (which is an array to insert multiple emails) to this collection. If it is a normal field (not is an array), it can do easy with update and $set. But, with the array, I cannot create a new field with update command and $upsert, $addToSet, $push... because the array has not created before.
I think this is a common behavior, but I cannot find any way to do that.