mongodb 只查询一个字段

db.users.find({}, {"userName":1,"_id":0}) ;

"_id":0表示不显示_id
原文地址:https://www.cnblogs.com/azhqiang/p/5597828.html