Skip to content
Monghoul

Database and collection operations

Creating, renaming and dropping databases and collections, and reading their stats.

Checked against v1.11.0 Updated
The create database dialog asking for a database name and the name of its first collection
Administration · A database and its first collection on one form
  • Create databases and collections from the sidebar. Creating a database also creates its first collection, named _init by default
  • Database names accept letters, numbers, underscores, and hyphens. Collection names also accept dots
  • Rename, clear (remove all documents), and drop collections. Rename and drop databases
  • A database rename preserves each collection’s documents, indexes, validator, and creation options, and recreates views as views
  • Copy or duplicate a database or collection, carrying documents and indexes (Pro)
  • Per-database statistics: collection count, data size, storage size, index size
  • Per-collection statistics: document count, average document size, data size, storage size, index count and size
  • Destructive actions require explicit confirmation and honor connection write protection