findOne()

语法

db.collectionspace.collection.findOne([cond],[sel])

此方法的使用与 find() 相同,具体的使用可以参照 find() 方法。但该操作方法只返回符合查询条件的一条记录。