As title. It only return a certain number of items. This number is fixed. This occur both when I use the terminal and when I use model.find() in mongoose.
            Asked
            
        
        
            Active
            
        
            Viewed 725 times
        
    -1
            
            
        - 
                    See if this answer helps: https://stackoverflow.com/questions/3705517/how-to-print-out-more-than-20-items-documents-in-mongodbs-shell – noam Jun 12 '20 at 10:38
 - 
                    What is the code you are using? – D. SM Jun 12 '20 at 17:23
 
1 Answers
1
            
            
        I think what you're seeing is the returned cursor.
You can use cursor.toArray() ref to get all the documents as an array.
In your terminal try using db.collection.find().toArray();
        Ramesh Reddy
        
- 10,159
 - 3
 - 17
 - 32