WEBVTT

00:00.480 --> 00:04.920
So let's continue with remove method.

00:06.520 --> 00:08.240
It's also very easy.

00:15.160 --> 00:17.000
For by id and list.

00:17.040 --> 00:19.080
We just need to boost the ID over here.

00:20.880 --> 00:21.360
Okay.

00:21.680 --> 00:25.400
If we don't see the box.

00:30.280 --> 00:36.760
Around a new file extension, we will use, but not file.

00:39.400 --> 00:42.880
Here I say string.

00:47.640 --> 00:49.080
Is a controller.

00:53.000 --> 00:53.400
So.

00:57.240 --> 00:58.000
Now let's say.

01:04.000 --> 01:04.560
Oh, sorry.

01:14.250 --> 01:15.090
Generally.

01:15.130 --> 01:15.690
Method.

01:19.290 --> 01:20.890
And what about turbo?

01:20.930 --> 01:21.370
In.

01:23.730 --> 01:26.330
USA we have got an internal server error.

01:27.410 --> 01:29.890
First of all, we will fix this error.

01:30.370 --> 01:37.410
But right now let me have the incorrect MongoDB database.

01:38.170 --> 01:41.890
You will say the boss will be not far.

01:44.850 --> 01:45.410
Right.

01:46.130 --> 01:48.450
If we remove the invalid.

01:50.690 --> 01:51.610
Invalid.

01:55.810 --> 01:56.210
And.

01:58.810 --> 01:59.090
Run!

01:59.090 --> 02:00.330
Now it is all set.

02:00.370 --> 02:10.930
But if you boost the invalid MongoDB MongoDB ID, you say we got the internal server error, right?

02:16.510 --> 02:17.270
You were here.

02:22.750 --> 02:25.030
So how we can fix that?

02:27.150 --> 02:38.150
Well, in order to fix that, we can create the pies in order to feed us.

02:38.550 --> 02:38.910
Okay.

02:38.950 --> 02:41.430
For example, is that a box controller over here?

02:41.910 --> 02:42.670
These are here.

02:44.430 --> 02:48.390
Let me look at the file from the documentation.

02:49.790 --> 02:57.230
Right here you can say is here I want to boost the pie over here for example like pass.

02:59.790 --> 03:00.230
Through.

03:02.590 --> 03:05.350
Our mask object or something like that.

03:05.630 --> 03:05.950
Okay.

03:05.950 --> 03:07.950
I want to build a custom buys.

03:08.270 --> 03:08.790
Right.

03:09.510 --> 03:10.030
Right here.

03:10.030 --> 03:12.190
Let's click into the custom bar.

03:15.030 --> 03:16.270
Click copy ability.

03:16.910 --> 03:20.630
And inside here right we want.

03:23.480 --> 03:24.000
My.

03:26.200 --> 03:27.000
Past.

03:32.040 --> 03:33.320
Dot bars.

03:33.360 --> 03:36.200
Dot the s and remove everything right here.

03:41.640 --> 03:42.200
Alright.

03:43.080 --> 03:44.000
Right here.

03:45.120 --> 03:49.240
We need to check if the value.

03:49.480 --> 03:52.480
The value over here will be always true, right?

03:52.920 --> 03:57.040
We need to check if the values right here.

04:00.520 --> 04:01.680
If this object.

04:01.920 --> 04:03.560
Okay we will have a one.

04:03.560 --> 04:06.560
What it will be is valid object from mongoose.

04:07.080 --> 04:08.520
We can move the value over here.

04:09.840 --> 04:17.960
If it's not valid we will throw new exception whereby.

04:20.480 --> 04:21.560
The object any.

04:24.360 --> 04:24.880
Person.

04:29.420 --> 04:33.580
Okay, so the last and if it works we will throw.

04:33.860 --> 04:35.740
We will return a value.

04:42.780 --> 04:45.620
Let me say right here we will import.

04:47.660 --> 04:58.340
The boss or actually we already have a boss object ID pi come from the edges comma.

04:58.380 --> 04:58.900
Right.

05:00.340 --> 05:05.540
But right now let me test my custom.

05:07.740 --> 05:08.300
Okay.

05:08.420 --> 05:12.500
Let me test my custom to say.

05:16.700 --> 05:23.460
If I would invalid, I will say, uh, we already viewed us wrong.

05:23.460 --> 05:23.860
Why?

05:26.140 --> 05:26.620
Right.

05:31.060 --> 05:36.190
Because it is not In Wales we built around.

05:36.230 --> 05:36.710
Okay.

05:37.390 --> 05:38.470
Let me test again.

05:41.510 --> 05:42.030
Okay.

05:42.030 --> 05:45.830
So the object is in wireless, right?

05:45.870 --> 05:47.230
Very very cool.

05:48.030 --> 05:52.190
And if you use this correctly.

05:58.870 --> 06:00.550
It will work.

06:00.750 --> 06:03.910
Also we already remove that.

06:05.350 --> 06:05.830
Right here.

06:05.830 --> 06:07.870
We don't need to restart anything right.

06:10.110 --> 06:16.270
We can use the bus object and everywhere where we have the ID.

06:19.510 --> 06:20.030
Okay.

06:20.270 --> 06:21.310
So that is.

06:23.670 --> 06:25.510
Just for the video.

06:26.030 --> 06:36.470
And actually we can use the viewing object from the JS okay.

06:36.510 --> 06:38.990
But you got the idea right.

06:39.150 --> 06:41.710
So I will see you in the next one.
