-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
  • 29
  • 1
  • 2

1 Answers1

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