-1

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.

Cal_W
  • 19
  • 2

1 Answers1

0

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
  • 9,107
  • 3
  • 12
  • 28