title: MongoDB update by id (with $set) not working
body: <p>I've been searching for an explanation on this (I'm obviously doing something wrong) with no luck so far, I have this collection on my DB:</p>
  
  <pre><code>db.activeCustomers.find().pretty();
  {
      "_id" : ObjectId("58ade8f280648c78cee70b5a"),
      "name" : "Gustavo",
      "lastName" : "Lara",
      "age" : 25,
      "hobbies" : [
          "rubik",
          "guitar",
          "games"
      ],
      "sex" : "male"
  }
  {
      "_id" : ObjectId("58ade8f280648c78cee70b5b"),
      "name" : "Diana",
      "lastName" : "Lara",
      "age" : 23,
      "sex" : "female"
  }
  { "_id" : ObjectId("58ade8f280648c78cee70b5c"), "sex" : "female" }
  {
      "_id" : ObjectId("58adf5a65da705df647fcbe0"),
      "name" : "Juan",
      "lastName" : "Pérez",
      "age" : 34,
      "sex" : "male"
  }
  </code></pre>
  
  <p>And I want to update the 3rd object (the one with just _id and sex) using this:</p>
  
  <pre><code>db.activeCustomer.update({_id: ObjectId("58ade8f280648c78cee70b5c")}, {$set: {name: "Myrna", lastName: "Guerrero", age: 26}});
  </code></pre>
  
  <p>but no data is updated, I get this:</p>
  
  <pre><code>WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0 })
  </code></pre>
  
  <p>According to <a href="https://specify.io/how-tos/mongodb-update-documents" rel="nofollow noreferrer">this</a>, I'm doing it right, maybe I'm doing a wrong combination of the API functionality, or it's a version thing? Thanks in advance.</p>
  
  <p>P.S. I'm using mongo v3.4.1</p>