Just learn the mean, use monk to connect mongodb, why is the second parameter of find used to filter keys invalid

  mongodb, question
var collection=db.get("foo");
 collection.find({},{"name":0},function(e,docs){
 //TODO
 });

Whether you look directly at the front desk or with debugging tools, the name key has not been filtered out. is it because monk is different from the original method or is it for some other reason?

Try the method given in the official usage example:

collection.find({},'-name',function(e,docs){
 //TODO
 });

In addition, monk is rarely used by people. Why not use mongoose? The usage is basically similar, developed by the same team, with more functions, more users and better community support. It is suggested that the landlord try it.