The method to retrieve all documents from a collection is find().
Syntax
db.collection.find({})
The {} inside find() represents an empty filter, meaning it matches all documents in the collection.
Example Usage
1. Retrieve All Documents
db.users.find({})
2. Retrieve All Documents with Formatting (pretty())
db.users.find({}).pretty()