db.movieDetails.updateMany({
"tomato.consensus": null,
"imdb.votes":{$lt:10000},
"year":{$gte:2010,$lte:2013}},
{
$unset:{"tomato.consensus":""
}
})
When I typed the command above in the mongo
shell, I received an error that stated that updateMany
was not a valid function.
TypeError: Property 'updateMany' of object video.movieDetails is not a function at (shell):1:17
I checked the documentation and updateMany
is listed a valid function. I would like to know why I received the error.