insertOne()
insertMany()
db.collection.insertOne()
Insert Documents
db.collection.insertMany()
Databases and Collections
Documents
注意除非通过投影明确排除,否则[find()方法始终在返回的文档中包含**_id字段。 下面的某些SQL查询可能包含一个_id**字段来反映这一点,即使该字段未包含在相应的find()查询中也是如此。
find()
db.collection.find()
$ne
db.collection.distinct()
$and
db.collection.findOne()
$or
limit()
$gt
skip()
$lt
explain()
$exists
sort()
$lte
count()
$regex