You can search with regex , this should work in Node
User.find({ username: /^Mich/})
Note that Mongo supports regex objects, which means you can do
var regexp = new RegExp("^"+ req.params.username); User.find({ username: regexp});
or Mongos native regex constructor
User.find({ username: {$regex : "^" + req.params.username}});
source share