I am using MongoDB with Nodejs and I am trying to find the usertype value of a specific user so I've got this:
var myQuery= { username: req.body.username }, { "usertype": 1 };
dbo.collection("usercollection").find(myQuery, function(err, obj) { ...
What I need returned is the value of usertype from that specific user but it keeps saying I have a syntax error with : expected.
How can I fix this?