1
00:00:05,930 --> 00:00:07,190
In this video.

2
00:00:07,190 --> 00:00:13,970
Let's get started with MongoDB terminologies because we are going to hear this one a lot.

3
00:00:13,970 --> 00:00:19,610
And to better understand MongoDB, we need to understand these common terms.

4
00:00:19,610 --> 00:00:23,420
And the first one is what we call database.

5
00:00:23,900 --> 00:00:30,740
In MongoDB, a database simply means a container for storing collections.

6
00:00:30,740 --> 00:00:32,900
So what is collection?

7
00:00:32,900 --> 00:00:35,660
And we have talked about what database before.

8
00:00:35,660 --> 00:00:41,750
So a way of storing collection in MongoDB is what we call database.

9
00:00:41,750 --> 00:00:44,300
So what is collection?

10
00:00:44,510 --> 00:00:48,710
Well, a collection is a group of documents.

11
00:00:48,710 --> 00:00:54,590
So a group of documents is what you call collection still is not clear.

12
00:00:54,590 --> 00:00:56,630
So what is documents?

13
00:00:56,660 --> 00:01:02,690
Great documents is a data that is in MongoDB collection.

14
00:01:02,750 --> 00:01:05,980
So again, this seems not to be clear.

15
00:01:06,020 --> 00:01:13,610
So this means that for collections we have for this call document and then for database, we have for

16
00:01:13,610 --> 00:01:15,140
this call collections.

17
00:01:15,260 --> 00:01:18,290
And the next term is what you call files.

18
00:01:18,290 --> 00:01:20,660
So what are those files?

19
00:01:20,660 --> 00:01:28,730
Are the individual pieces of data within a document where I believe this definition is not clear to

20
00:01:28,730 --> 00:01:29,150
you.

21
00:01:29,150 --> 00:01:32,690
That's why I'm going to show you this diagram.

22
00:01:32,690 --> 00:01:35,390
So what is a database?

23
00:01:35,630 --> 00:01:40,700
So let's take it that we are developing e commerce application.

24
00:01:40,880 --> 00:01:45,830
And for e commerce application we have different types of data.

25
00:01:45,830 --> 00:01:53,030
For example, product customers, orders, payments, transactions.

26
00:01:53,030 --> 00:01:59,810
So all of these are data and is being stored inside one container called database.

27
00:02:00,140 --> 00:02:04,280
So this container is what we call database.

28
00:02:04,490 --> 00:02:11,210
And inside the database we have what is called collections, as we discussed in a previous video.

29
00:02:11,270 --> 00:02:13,160
So what are collections?

30
00:02:13,160 --> 00:02:21,740
So collections are pieces of data that are related in your application and we can save it in one collection.

31
00:02:21,740 --> 00:02:29,870
So for E commerce application, we have users, meaning we are going to store customers or users inside

32
00:02:29,870 --> 00:02:30,920
this collection.

33
00:02:30,920 --> 00:02:36,440
And for the same application we can also have product collections.

34
00:02:36,440 --> 00:02:46,190
So if we see that a database contains what collections and we can have many collections inside one database

35
00:02:46,280 --> 00:02:52,460
and inside the collection we have what is called the actual uses.

36
00:02:52,460 --> 00:02:57,500
You can see that in MongoDB data are being stored in a JSON format.

37
00:02:57,710 --> 00:03:01,700
So in the collection of users we can have many uses.

38
00:03:01,700 --> 00:03:08,210
In this case, let's say we have two users, Emma and John, with property and value.

39
00:03:08,270 --> 00:03:12,200
And for product collection we can have individual products.

40
00:03:12,230 --> 00:03:20,930
The first one is iMac and the next one is Laptop and this one is what we call document.

41
00:03:20,930 --> 00:03:24,800
So documents are pieces of data inside collection.

42
00:03:24,800 --> 00:03:30,770
So when we say failures, the properties and value here are what we call the fields.

43
00:03:30,770 --> 00:03:36,500
So you can see in a nutshell what is database collection and document.

44
00:03:36,500 --> 00:03:39,470
So be familiar with this syntax.

45
00:03:39,470 --> 00:03:49,250
So the next video we will talk about ways of using MongoDB or how we can use MongoDB in the next video.

