In this video.
Let's get started with MongoDB terminologies because we are going to hear this one a lot.
And to better understand MongoDB, we need to understand these common terms.
And the first one is what we call database.
In MongoDB, a database simply means a container for storing collections.
So what is collection?
And we have talked about what database before.
So a way of storing collection in MongoDB is what we call database.
So what is collection?
Well, a collection is a group of documents.
So a group of documents is what you call collection still is not clear.
So what is documents?
Great documents is a data that is in MongoDB collection.
So again, this seems not to be clear.
So this means that for collections we have for this call document and then for database, we have for
this call collections.
And the next term is what you call files.
So what are those files?
Are the individual pieces of data within a document where I believe this definition is not clear to
you.
That's why I'm going to show you this diagram.
So what is a database?
So let's take it that we are developing e commerce application.
And for e commerce application we have different types of data.
For example, product customers, orders, payments, transactions.
So all of these are data and is being stored inside one container called database.
So this container is what we call database.
And inside the database we have what is called collections, as we discussed in a previous video.
So what are collections?
So collections are pieces of data that are related in your application and we can save it in one collection.
So for E commerce application, we have users, meaning we are going to store customers or users inside
this collection.
And for the same application we can also have product collections.
So if we see that a database contains what collections and we can have many collections inside one database
and inside the collection we have what is called the actual uses.
You can see that in MongoDB data are being stored in a JSON format.
So in the collection of users we can have many uses.
In this case, let's say we have two users, Emma and John, with property and value.
And for product collection we can have individual products.
The first one is iMac and the next one is Laptop and this one is what we call document.
So documents are pieces of data inside collection.
So when we say failures, the properties and value here are what we call the fields.
So you can see in a nutshell what is database collection and document.
So be familiar with this syntax.
So the next video we will talk about ways of using MongoDB or how we can use MongoDB in the next video.