mongodb select all documents that match same document code example Example: mongodb get all rows db.collectionName.find()