🪴 Zero's Garden

Home

❯

notes

❯

Database

❯

MongoDB Shell

MongoDB Shell

May 30, 20251 min read

show dbs
use <database>
show collections
config.set("displayBatchSize", 3) // limit the number of items returned by a cursor
db.<collection>.find()

References

  • https://www.mongodb.com/docs/mongodb-shell/reference/configure-shell-settings-api/#update-number-of-items-returned-by-a-cursor

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub
  • Sponsor me