title: Unable to search for ObjectID in MongoDB stitch service
body: <p>I've been trying for hours to make this simple query work, but somehow it doesn't. I've created a HTTP service in MongoDB Stitch and I call the service with an ID like this</p>
  
  <p><a href="https://stitchurl.myservice?ID=blablabla" rel="nofollow noreferrer">https://stitchurl.myservice?ID=blablabla</a></p>
  
  <p>inside the service I want to disable the account with ID x so I tried to call it like this:</p>
  
  <pre><code>exports = function(payload) {
  
      var queryArg = payload.query || '';
      var ID = queryArg.ID || '';
      if(ID !== "")
      {
          const mongodb = context.services.get("mongodb-atlas");
          const mycollection = mongodb.db("myDB").collection("myCollection");
          var oID = new BSON.ObjectId(ID);
          return mycollection.updateOne({oID}, {$set:{isdisabled: true}});
      }
  }
  </code></pre>
  
  <p>no matter if I query:</p>
  
  <pre><code>{ID}
  {oID}
  {_id:ID}
  {_id:oID}
  ...
  </code></pre>
  
  <p>I always receive 0 results, but when I'm in the MongoDB Atlas collections I can query for </p>
  
  <pre><code>{_id:ObjectId("myID")}
  </code></pre>
  
  <p>and receive the proper result. There's no problem with rules or rights, because if I run</p>
  
  <pre><code>return mycollection.findOne({})
  </code></pre>
  
  <p>I get a proper hit.</p>
  
  <p>Any ideas what I'm doing wrong?</p>
  
  <p>Regards Christian</p>