mongodb查询------个性化fields
mongodb的查询语法db.getCollection('xxx').find(query,fields)今天来说的就是fields的用法 我们预期只需要html字段db.getCollection('xxx').find({},{"html" : true })查询结果: 但是会包含默认_id字段,按照如下写法db.getCollection('xxx').find({},{"_id":fa
原创
2017-11-21 18:46:27 ·
4851 阅读 ·
0 评论