Mingo Documentation

Collections

The collection tab

When you open a new tab with a collection, that tab is dedicated to the selected collection. It provides all the tools and actions you may need to perform on a collection. 

At the top left, you'll find your current location: Connection -> Database -> Collection. Next to it, the pills represent views / features / tools to work with the collection:

  • Documents - let's you browse documents, view their contents and perform actions on them
  • Aggregator - Mingo's interactive tool for creating aggregations visually
  • Schema - analyzes documents' schema and lets you perform statistical or clean-up operations on documents
  • Indexes - List of indexes and their manager
  • View - list of collection's views and their manager
  • Export - an interactive tool to export documents in different formats
  • Import - to import documents into the collection from various sources
  • Actions - further actions to perform with the collection

Copy collection to

Mingo lets you copy your collection into a different database or new collection very easily with just a few clicks. This will take you to Mingo's Dump tool and preset your selection. Just submit your action and Mingo will perform the copying.

Dump collection

Basically the same functionality as with Copy collection to, but dumps the collection into a directory or archive file. This action opens the same Dump tool, but with different settings.

Export collection

This option focuses the Export view in the collection tab. The details of how to export documents are described in the Export section of the docs.

Create view

This action opens the View generator form in a modal window. Creating views requires a basic knowledge of how they work, so refer to the MongoDB documentation, please.

Use Aggregator
Since Views are created using aggregation pipelines, you can create the pipeline first using the Aggregator and then use it to create the View.

Rename collection

This does what it says and it's very simple. Just provide the new collection name.

Truncate collection

Truncating a collection means deleting all its documents completely, essentially making it empty. All associated Views and Indexes are kept. So use this feature wisely. There's NO UNDO for this action.

Drop collection

Dropping a collection means deleting all its documents and the collection itself, completely. Views and Indexes are deleted, too. So use this feature wisely. There's NO UNDO for this action.