此篇文章简单的记录一下mongodb 的简单查询操作. 一.数据准备: db.persons.insertMany([ {'userId':1,name:'张三','age':20,'scores':[80,90,100],father : {name:'张三三','age':46}}, {'userId':2,name:'李四','age':21,'scores':[80,95,98],father : {name:'李四四','age':50}}, {'userId':3,name:null…