I am using arrayFilters as option in findOneAndUpdate (in mongoose) to update value of name and
I think there is a bug since version 5.4.4 or maybe another previous version. It was reported here. For the moment I solved it by downloading the mongoose version to 5.3.15.
5.4.4
5.3.15