I want to remove a field from the document so let me know I have to use the remove() method or update() method with the $unset operator.
CodePudding user response:
You need update()
method with the $unset
operator.
remove()
is to delete document.