F
F
FaionWeb2015-10-30 11:25:27
MongoDB
FaionWeb, 2015-10-30 11:25:27

How to query the number of documents in a MongoDB collection?

Prompt command in shell mongo to count documents in collection

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pomeo, 2015-10-30
@FaionWeb

db.collection.find().count()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question