Confirmation if you’re using MongoDB local server or MongoDB Atlas.
May I ask where you are noticing this error? Are you using any MongoDB driver to perform the update, or are you executing it directly from the mongosh?
Providing these information will help others better understand the issue and assist you better.