Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose delete property

User.collection.update({_id: user._id}, {$unset: {field: 1 }});
 
PREVIOUS NEXT
Tagged: #mongoose #delete #property
ADD COMMENT
Topic
Name
1+1 =