Am getting the following error when i am executing the update many query.
Query:
db.movieDetails.updateMany({ rated: null }, { $unset : { rated: “” }})
Error:
2020-02-02T18:05:08.919+0100 E QUERY [js] uncaught exception: SyntaxError: illegal character :
@(shell):1:64
I know that the error is on the 64th character and that is the colon after rated but i don’t know what’s going wrong here.
Thanks