You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.The text was updated successfully, but these errors were encountered: