首页 > 技术文章 > mongodb 只查询一个字段
azhqiang 2016-06-19 12:26 原文
db.users.find({}, {"userName":1,"_id":0}) ;
"_id":0表示不显示_id