1
00:00:01,290 --> 00:00:08,940
We are going to demonstrate how to get the items and also the items to the Mongo DB, So first we are

2
00:00:08,940 --> 00:00:17,010
going to apologize and right before that, we are going to create the item.

3
00:00:17,010 --> 00:00:17,610
Mordo.

4
00:00:20,120 --> 00:00:24,500
And we are going to import from the file that we just created.

5
00:00:34,100 --> 00:00:38,060
For example, we are going to create a map together and.

6
00:00:39,840 --> 00:00:42,310
Do you see it that's created by Tom.

7
00:00:43,950 --> 00:00:47,010
And then we agree that we weren't and response.

8
00:00:50,150 --> 00:00:59,420
And then we create a new item, so we set it as a constant item is equal to nude and use the model and

9
00:00:59,420 --> 00:01:06,890
the name is Vogue and the price is one thousand.

10
00:01:07,850 --> 00:01:12,630
We do not need to at the time because it will create automatically by the mongoose.

11
00:01:12,980 --> 00:01:17,810
So after we create the item, we can use item to save.

12
00:01:18,410 --> 00:01:28,190
And because this is POMA space, so we can use then and we can return the result, U.S. response to

13
00:01:28,230 --> 00:01:29,380
find out.

14
00:01:29,960 --> 00:01:34,310
So now we can try the path by using crate items.

15
00:01:34,550 --> 00:01:39,330
Now you can see it already returns the response to the website.

16
00:01:39,350 --> 00:01:44,010
So we can also check it inside Mongo DB.

17
00:01:44,180 --> 00:01:52,280
You can see this is the item that we just created with the form and the price is one thousand and we

18
00:01:52,280 --> 00:01:56,580
can create another item by changing these values.

19
00:01:57,200 --> 00:02:03,070
And if we refresh now, you can see it already changed to computer and 2000s.

20
00:02:03,290 --> 00:02:08,120
And now if you go to the mango deep and refresh again, you can see it now.

21
00:02:08,120 --> 00:02:09,780
There are two items here.

22
00:02:10,070 --> 00:02:12,230
One is the phone and the other is the computer.

23
00:02:12,440 --> 00:02:15,440
Now, we can also get all the items.

24
00:02:15,570 --> 00:02:18,050
I changed it as get items.

25
00:02:18,470 --> 00:02:24,710
Now, we do not have to create a new item so we can delete this and we are going to change this to a

26
00:02:24,710 --> 00:02:25,250
fight.

27
00:02:25,430 --> 00:02:29,570
And both of them has to catch the error.

28
00:02:31,120 --> 00:02:32,470
Now, we can copy this.

29
00:02:34,580 --> 00:02:43,220
And go to the website and paste here, the item is not defined because we should use item the capital

30
00:02:43,370 --> 00:02:43,920
letter.

31
00:02:44,420 --> 00:02:46,020
And now we refresh again.

32
00:02:46,130 --> 00:02:49,230
Now we can see the two documents here.

33
00:02:49,280 --> 00:02:54,970
And you may not like this if you're using Chrome because using Firefox.

34
00:02:55,160 --> 00:03:00,340
So both of them, you displayed these two items at last.

35
00:03:00,350 --> 00:03:10,430
I'm going to demonstrate to get the items by using the IP so we change this item and then we change

36
00:03:10,430 --> 00:03:15,050
this to a five by I.T. and then we have to pass the idea here.

37
00:03:15,200 --> 00:03:16,870
Now we can copy one of them.

38
00:03:16,880 --> 00:03:22,520
For example, we want to copy the IP of the phone and then we paste it here.

39
00:03:22,790 --> 00:03:32,060
Now, if we go to get item now if you only to the phone and if we change this to the idea of the computer,

40
00:03:32,210 --> 00:03:35,130
we pace it here and then we refresh you.

41
00:03:35,130 --> 00:03:36,290
We've got the computer.
