I have some problem with that Labs, I create the some query as the answer, but me databse have less document that the original.
db.zips.find({ “pop”: { “$lt”: 1000 }}).count()
8062
Is much Better revidew the query sintaxis than the result.-
I have some problem with that Labs, I create the some query as the answer, but me databse have less document that the original.
db.zips.find({ “pop”: { “$lt”: 1000 }}).count()
8062
Is much Better revidew the query sintaxis than the result.-
It looks like that somehow your data got modified and hence the query is returning lesser number of documents.
I would recommend you to drop all the databases
in your cluster by using the db.dropDatabase() and reload the sample dataset
.
Let me know if you have any questions.
~ Shubham