title: MongoDB Query, find all by userID
body: <p>Here is the structure of "customers" in my db</p>
  
  <pre><code>{
      "_id": {
          "$oid": "xxxxx"
      },
      "user": {
          "$oid": "xxxxx"
      },
      "name": "Test Mobile",
      "email": null,
      "phone": "xxxxx",
      "completed": false,
      "__v": 0
  }
  </code></pre>
  
  <p>I am trying to query all customers with a certain userID and sort by "completed", I can get all customers like so</p>
  
  <pre><code>exports.list = function(req, res, next) {
    Customer.find().sort('-completed').exec(function(err, customers) {
      if (err) return next(err);
      return res.send(customers);
    })
  };
  </code></pre>
  
  <p>I can query based on phone like so</p>
  
  <pre><code>exports.list = function(req, res, next) {
    Customer.find({ phone: "xxxxxxxx"}).sort('-completed').exec(function(err, customers) {
      if (err) return next(err);
      return res.send(customers);
    })
  };
  </code></pre>
  
  <p>what I can't seem to do is query the userid, i tried this way and variations of this but no luck</p>
  
  <pre><code>exports.list = function(req, res, next) {
    Customer.find({"user.$oid": ObjectId("xxxxxxxxx")}).sort('-completed').exec(function(err, customers) {
      if (err) return next(err);
      return res.send(customers);
    })
  };
  </code></pre>
  
  <p>Not sure if i'm missing something simple when querying ID's?</p>