Thank you so much ❤️ for all the great work and effort.
I have found a potential bug:
When you use updateMany resolver on array field it is executed on mongoose as $set.0 - $set.1 - .... and this result of the mongodb field data type to become Object instead of Array
Thank you so much ❤️ for all the great work and effort.
I have found a potential bug:
When you use
updateMany
resolver on array field it is executed on mongoose as$set.0 - $set.1 - ....
and this result of the mongodb field data type to become Object instead of ArrayFor example
So the companies field becomes object because it's first time set.
Ideally, updateMany should $set the whole array not the indexes. so the query should be like
Using
UpdateOne
works as expected - this issues is only with updateMany.