Answer a question

This is related to How to print out more than 20 items (documents) in MongoDB's shell?. Right now I'm only seeing 20 items at a time returned from my IntelliJ MongoDB interactive shell. Things that I have tried:

  • Confirming IntelliJ Preferences >> Tools >> Database >> Data Views does not have any 20 item limit.
  • Executing DBQuery.shellBatchSize = 1000; in the IntelliJ MongoDB shell
  • Adding DBQuery.shellBatchSize = 1000; to .mongors.js file in my home directory (as the docs say).

How can I get remove this 20 item limit in IntelliJ MongoDB driver?

Answers

Since 2021.1 version you can change the value of database.mongodb.page.size.limit Registry option. To open Registry dialog use Help | Find Action... and type "Registry":

enter image description here

Logo

MongoDB社区为您提供最前沿的新闻资讯和知识内容

更多推荐