db.users.find({}, {"userName":1,"_id":0}) ;1表示取该字段;0不取,因为mongodb默认查询——id所以这里把——id设置为不查询
Copyright @ 2024 放逐忧伤 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster