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
It should be mutable, to be able to programatically construct the $addToSet object.
One challenge is that we're using $addToSet from mongodb types, so changing that can be a bit tricky.
The text was updated successfully, but these errors were encountered:
Prerequisites
Mongoose version
6.4.4
Node.js version
16.x
MongoDB server version
5.x
Description
Currently,
$addToSet
is readonly which disallows people from constructing the$addToSet
programatically.Steps to Reproduce
Expected Behavior
It should be mutable, to be able to programatically construct the
$addToSet
object.One challenge is that we're using
$addToSet
from mongodb types, so changing that can be a bit tricky.The text was updated successfully, but these errors were encountered: