I know that on robomongo if I want to find _id of user where username = test2 I can use
db.getCollection('user').find({},{_id:1},{"username":"test2"})
now, on visual studio code, I want to find value of field "disabled" from user collection where field "username" value equal to variable "tempusername" value. I tried:
    colUser = mongoDb.collection("user");
 var status = colUser.find({},
    { disabled:1},{ username:tempusername},function (err, doc) {
        console.log(doc);
      });
but it shows value of status is "undefined". What is the write code for this?
 
    