mongodb is null and not null
db.getCollection('robot').find({"name":{$exists:true}}) 查询 存在name字段(不论是否为空)的文档
db.getCollection('robot').find({"name":{$ne:null}}) 查询name不为null的文档
db.getCollection('robot').find({"name":{$exists:nul...
原创
2018-09-13 14:08:23 ·
1215 阅读 ·
0 评论