KTB
KTB

Reputation: 367

Setting Mongo CLI result size

When querying something with find() in the MongoDB Commandline 10 results are returned and I can get the next 10 with the it command.

How do increase the returned amount?

Upvotes: 3

Views: 383

Answers (1)

JohnnyHK
JohnnyHK

Reputation: 312085

In the shell you can do the following:

 DBQuery.shellBatchSize = 25

That would set it to return 25 results instead.

Upvotes: 5

Related Questions