Hi everyone. In this session, we’re going to take a

simple and practical look at MongoDB Compass and

understand what it is and how it helps us work more

comfortably with databases.

MongoDB Compass is the official graphical interface

for MongoDB. Instead of typing commands in the

terminal, you get a visual environment where you can

explore databases, open collections, insert documents,

run queries, and filter data. It makes working with

MongoDB much easier, especially if you prefer seeing

your data structured on the screen rather than

interacting purely through command lines.

To get started, you can download MongoDB Compass

directly from the MongoDB website under the Tools

section. Just choose the stable version for your

operating system — for example, an .exe file for

Windows — install it like any other application, and

you’re ready to connect.

When you open Compass, you’ll see a connection

string (URI). If MongoDB is installed locally, it

usually points to localhost, which means it connects to

the MongoDB server running on your own computer.

You can simply click “Connect” to access your

databases.

After connecting, you’ll see a list of databases on the

left. By default, MongoDB creates three system

databases:

  • admin
  • config
  • local

Any additional databases are ones you’ve created

yourself.

For example, suppose we open a database called

invent. Inside it, you may find several collections. In

MongoDB, a collection is similar to a table in

relational databases. If you ever need to delete a

collection, you can use the “Drop Collection” option

and confirm the action — the change happens

immediately.

Now imagine creating a new database called demoDB

with a collection named demoCollection. Once created,

you can begin inserting documents right away.

MongoDB stores data in BSON (Binary JSON), so

documents look like JSON objects. Let’s say we’re

building a small course database instead of a book

database. A sample document could look conceptually

like this:

  • title: “Mastering Flutter Development”
  • instructor: “Kia Malek”
  • durationHours: 42
  • level: “Intermediate”
  • tags: [“Flutter”, “Mobile”, “UI Design”]

When you insert this document, MongoDB

automatically generates an _id field. Even if you don’t

define it, MongoDB creates it for you. This _id

uniquely identifies each document in the collection and

ensures every record can be referenced individually.

You can insert multiple documents into a collection,

and each becomes a separate record. Compass allows

you to edit, clone, delete, or export documents directly

through its interface buttons.

Filtering is one of the most powerful features in

Compass. At the top of the documents view, there’s a

filter bar. For example, if you want to find all courses

labeled as “Intermediate,” you could type:

{ level: "Intermediate" }

and click “Find.” Compass will instantly display only

the matching documents.

If Compass fails to connect — especially when

working locally — check whether your MongoDB

server is running. On Windows, you can open the

Services app and ensure that the MongoDB Server

service is active. If it’s stopped, simply start it.

Overall, MongoDB Compass is a powerful yet

beginner-friendly tool. It helps you visualize your

database structure, test queries, manage collections,

and better understand how your data is organized —

without relying entirely on the command line.

If you’re new to MongoDB, spend some time

experimenting with Compass. Create databases, insert

sample documents, apply filters, and explore the

interface. The more you practice visually, the clearer

MongoDB concepts will become.