get all items in collection mongo client code example Example: get all data in collection mongodb db.collection_name.find().pretty()