What is the difference between, I basically wanted to find all the documents in the mycollection. db.mycollection.count() vs db.mycollection.find().count()?
They both return the same result. Is there any reason why would somebody choose the count() vs the find().count()? In contrast to the fact that find() has, a default limit applied (correct me if I'm wrong) to which you would have to type "it" in order to see more in the shell.