I am using updateMany to assign an empty array to null field in my document. I am planning to do this as a part of migration on server start.
db
.collection('largeCollectionWithMillionsOfDocuments')
.updateMany({ 'status.all': { $type: 10 } }, { $set: { 'status.all': [] } }, { upsert: false })
*Are there any limits to number of documents that can be updated by single updateMany?