For a high-level view of why data browsers are available on Compose, and a full list of deployment types they are available on: Compose Deployments - Data Browsers.
The data browser allows access to your MongoDB databases, collections, and documents from inside the Compose UI. It also provides data migration, user management, and other administrative tools.
The first view is a listing of databases in your deployment with their respective sizes.
Clicking on an a database brings you to a list of collections in that database. Clicking on one of the collections brings you to the Collections view.
As the top sidebar item that appears when clicking on a database, it has a listing of all the collections in the current database, the number of documents each contains, and the size of each collection. Click on a collection to view and manage the data within it.
Once inside the collection there are three tabs: Documents, Indexes, and Settings.
The first tab provides a command-line for running queries with the
Limit the number of results by specifying a number in
limit(). Optional arguments
explain() are toggled with the buttons beneath the command-line.
The second tab supplies a command-line for running the
ensureIndex command with the ability to toggle optional parameters
Below the command-line is a list of all the active indexes for the collection.
The third tab contains collection statistics, a field for renaming the collection, and a Delete Collection button.
The Import Tool moves data from another MongoDB database into the current database. It overwrites all data and indexes in the current database with the imported data. It can be used to move data from another database in the same deployment, a database from a different deployment, or an external database.
This is a list of all users that have been created and their permissions level. To remove a user, click on Drop to the right of the username. To add a user, click on Add User in the upper-right. A command-line displaying the
createUser command appears and the optional argument
readOnly is toggled below. Once a user is created it is displayed in the list.
The Admin tab contains some handy database tools. From the command
db.stats(), it displays dataSize, indexSize, and fileSize. There is, finally, a Delete Database button at the bottom.
To make a new database, click on Add Database in the upper-right of the main data browser page. This brings up a command-line with the
Type in a name for the new database and run the command. Once the database has been created, the view changes and the
createCollection command appears.
max are toggled with the buttons beneath the command-line.
Once the collection has been created, the view changes to run queries on documents and display results. To create new document, click on Add Document in the upper-right. This provides a text box with brackets so document details can be filled in.
Click on Validate to ensure that it is a valid BSON object and click on Save to add the document to the collection.
###Still Need Help?
If this article didn't solve things, summon a human and get some help.
Updated about a year ago