WEBVTT

00:00.880 --> 00:01.280
Hi.

00:01.760 --> 00:02.640
Everyone.

00:03.160 --> 00:09.680
Welcome to the new section about the boss comment.

00:10.120 --> 00:10.600
Okay.

00:11.080 --> 00:20.120
The comment is a very important feature in any social media application, right?

00:20.800 --> 00:26.080
So in this video let's set up the new module.

00:26.560 --> 00:35.480
You made a comment and I will show you how we can design the document for the comment.

00:49.560 --> 00:50.080
Sorry.

00:52.400 --> 00:52.840
The.

00:59.240 --> 01:02.400
Rest API and cross application.

01:02.600 --> 01:15.620
So we already have a comment and let's change the So ski mask okay goes over here and let me copy everything

01:15.620 --> 01:17.580
from reaction.

01:18.060 --> 01:18.460
Okay.

01:18.460 --> 01:31.060
We copy everything and start over here and change the name a little bit to command comment here checkout

01:31.100 --> 01:33.860
Command schema.

01:34.980 --> 01:42.420
And here we wait command okay and command document.

01:45.180 --> 01:45.700
Well.

01:48.860 --> 01:50.420
Let me remove some stuff.

01:51.060 --> 01:58.740
Let me show you how we can design the command document okay.

02:02.020 --> 02:07.780
Well, if we take a look at facebook.com when we create a box, okay.

02:08.820 --> 02:12.220
And when we create a command, for example, right here.

02:12.940 --> 02:15.260
Okay, we have a mutable command, right?

02:15.540 --> 02:18.630
We can create a mutable command.

02:19.070 --> 02:21.590
And in here we have a nested command.

02:26.910 --> 02:27.950
What you can say.

02:28.230 --> 02:31.030
What about if I go into the command over here?

02:31.790 --> 02:32.310
Okay.

02:32.470 --> 02:34.790
If I click on nested also.

02:35.390 --> 02:37.150
Well it will not happen.

02:37.150 --> 02:38.870
It will not nested anymore.

02:39.190 --> 02:44.470
Instead of the loops, only nested one level.

02:45.190 --> 02:51.550
Okay, I will decide as we only nested one level and it will increase the performance.

02:51.710 --> 03:02.150
Okay, if we do nested many, many more, we need the advanced data structure and some advanced stuff.

03:02.310 --> 03:03.510
Nested command.

03:03.710 --> 03:08.270
But this is not the story of the firebox okay?

03:08.390 --> 03:11.070
It only lasted one time.

03:11.390 --> 03:14.270
So for that reason I will create us.

03:14.990 --> 03:16.430
Let me design a model.

03:17.470 --> 03:22.150
Firstly, we need to know the command belong to the boss, right?

03:22.470 --> 03:24.570
So I will create a boss.

03:33.170 --> 03:33.570
Here.

03:36.290 --> 03:39.210
And revert to the boss.

03:46.810 --> 03:47.810
Butterflies.

03:48.730 --> 03:50.330
And we need.

03:55.170 --> 03:55.450
Uh.

03:55.450 --> 03:56.170
We will need.

03:56.170 --> 03:58.690
One more thing will be contained.

04:04.530 --> 04:05.090
Right.

04:08.810 --> 04:12.250
And this will will be required.

04:17.210 --> 04:25.530
And what we have, uh, when we replies I want it will reply to user.

04:25.570 --> 04:31.790
Okay, I want to create one more blog called Replies to the user.

04:32.230 --> 04:37.390
And this can be the user document or it can be node.

04:38.150 --> 04:38.630
Okay.

04:41.550 --> 04:42.350
Right here.

04:42.910 --> 04:44.830
Let me move a little bit.

04:45.270 --> 04:45.910
Tie.

04:48.470 --> 04:49.510
A tie over here.

04:53.550 --> 04:55.190
Over here will be user.

04:56.670 --> 04:57.070
Okay.

04:57.070 --> 05:00.150
Let me show you what exactly about Reply-to user.

05:01.470 --> 05:10.670
Here when I clicked into the replies I want it will tag the user into here, right?

05:10.710 --> 05:14.470
So that the field of reply to the users.

05:15.710 --> 05:20.590
Okay, we have a boss content reply to user and we have a timestamp.

05:22.550 --> 05:23.070
Okay.

05:23.110 --> 05:25.670
And we need one more thing will be parent.

05:26.710 --> 05:29.070
Parent command okay.

05:29.110 --> 05:31.790
Because this is the nested command right?

05:31.830 --> 05:34.350
We want to know which is the parent command.

05:34.790 --> 05:42.800
So for that reason this guy we will use Removes one more thing here and.

05:46.560 --> 05:50.320
We will point you directly to my document.

05:51.200 --> 05:52.920
And right here we make command.

05:53.760 --> 05:55.400
Command class also.

05:59.760 --> 06:00.520
False.

06:02.120 --> 06:07.960
And this can be known with the with the command over here.

06:09.320 --> 06:12.520
We don't have any parent.

06:12.720 --> 06:16.040
So for that reason it should be known in the sky.

06:16.400 --> 06:16.720
Okay.

06:16.760 --> 06:23.280
And with this guy it will point back to here for example I do command one okay.

06:24.040 --> 06:30.160
So that's the parent content to user.

06:33.640 --> 06:36.960
Also right here okay.

06:37.000 --> 06:39.720
So that is not the command schema.

06:40.120 --> 06:46.280
And I hope you understand this video I will see you in the next one.
