Both of the two expressions below in mongodb return the same value:
db.collection.find().aggregate([{:$project => {:_id=>1}}]) db.collection.find().projection({:_id=>1})
While I just wondering is there any difference between them?
Aucun commentaire:
Enregistrer un commentaire