查询某个字段存在的语句
db.getCollection(‘tableName‘).find({"RouteInfo":{"$exists":true}})
查询某个字段不存在的语句
db.getCollection(‘tableName‘).find({"RouteInfo":{"$exists":false}})
mongodb使用小点
原文:https://www.cnblogs.com/petunsecn/p/12289990.html