Skip to content

Glossary: MongoDB

countDocuments

Also written: countDocuments()

A method that counts the documents in a collection, or only those matching a filter.

Where the book teaches it

Related terms

Filterfind / findOne