Mongoose findOneAndUpdate and runValidators not working

required validators only fail when you try to explicitly $unset the key.

This makes no sense to me but it’s what the docs say.

Leave a Comment