title: How can I add and remove to / from a nested mongodb collection in Node.js?
body: <p>I would like to add and remove "developers" in to the following mongodb collection. There can be many projects, each project can have many user stories, and each user story can have multiple developers working on it.</p>
  
  <h1>Question:</h1>
  
  <p>What mongodb query can I use to add new developers to the "stories" collection, and what mongodb query can I use to remove developers from the "stories" collection?</p>
  
  <p><strong>JSON for a Project:</strong></p>
  
  <pre><code>{
     "_id": ObjectId("4ef0a2bac8c056bc26000002"),
     "chat": {
       "0": {
         "body": "Test",
         "sender": "brownj2",
         "sent": 1324404459137 
      } 
    },
     "clients": {
       "0": {
         "username": "b" 
      } 
    },
     "owner": "brownj2",
     "stories": {
       "0": {
         "_id": "U89Tq7X8BF2qaBfFzfE99lkb",
         "deadline": "10\/10\/2010",
         "description": "Example user story",
         "developers": {
           /* Developers go here */
         },
         "lane": "2",
         "roi": "0.38",
         "sp": "8",
         "title": "Test #2",
         "type": "story",
         "value": "3" 
      },
       "1": {
         "_id": "EdbzrnoZTh8LTFDNrUSBkVrd",
         "deadline": "10\/10\/2010",
         "description": ".....",
         "developers": {
           /* Developers go here */             
         },
         "lane": "0",
         "roi": "1.00",
         "sp": "4",
         "title": "Test #1",
         "type": "story",
         "value": "4" 
      } 
    },
     "team": {
       "0": {
         "username": "a" 
      } 
    },
     "title": "Example Project" 
  }
  </code></pre>