KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to delete a certain key and value from every entry in a particular collection. I've looked into remove and that seems to be for only entire entries. Looking at update, I don't believe updating a particular key with null or an empty string would achieve what I'm trying to do. I'm very much a beginner with mongodb, so please excuse my ignorance. Long story short, how can I turn { "_id" : 1234, "name" : "Chris", "description" : "Awesome" } into { "_id" : 1234, "name" : "Chris" } without deleting the entry and creating a new one, or using any non-mongodb commands? Thanks!
Tags (comma-separated)
Save Edits
Cancel