WEBVTT

00:00.840 --> 00:02.560
Hi everyone.

00:03.560 --> 00:08.800
We haven't accomplished the raw.

00:09.720 --> 00:10.960
Raw yet.

00:11.800 --> 00:12.440
The reason?

00:12.440 --> 00:18.560
Because if you see this code right here, it's only work.

00:18.760 --> 00:20.200
If the result.

00:20.240 --> 00:23.440
Right here will be the user ID, right.

00:23.480 --> 00:28.360
You can say about us because this is the user controller.

00:28.400 --> 00:32.840
So for that reason the ID right here will be the user ID right.

00:33.800 --> 00:36.120
But what happens if uh.

00:36.400 --> 00:41.680
Later we have uh, another resource like boss.

00:41.960 --> 00:42.440
Okay.

00:43.400 --> 00:49.040
Like boss or command or something like that.

00:49.920 --> 00:54.280
So how we can perform the action.

00:56.600 --> 01:00.460
It mean in later if we move the result Here.

01:00.700 --> 01:02.100
It means right here in the mosque.

01:03.180 --> 01:08.980
And clearly the user ID and the ID will be very different, right?

01:09.420 --> 01:13.300
We cannot compare us in this way.

01:14.860 --> 01:19.060
So is that all we need to somehow.

01:21.300 --> 01:25.060
Look up no result ID.

01:26.260 --> 01:29.820
So let me show you what I mean right now.

01:29.860 --> 01:35.060
Let me create another resource to demonstrate for you.

01:35.060 --> 01:35.340
Okay.

01:35.380 --> 01:39.260
You can go with my resource.

01:39.980 --> 01:42.620
I will create a new resource with mosque.

01:48.180 --> 01:52.980
And now let me clear master with disable testing.

02:00.170 --> 02:01.130
The rest we are.

02:04.530 --> 02:05.290
After us.

02:05.930 --> 02:08.290
Let me check those remarks again.

02:09.090 --> 02:10.450
And it says here, let me.

02:11.090 --> 02:12.490
We have a boss and a day.

02:12.930 --> 02:13.450
Right.

02:13.530 --> 02:16.850
Let me open this game right here I will be.

02:19.130 --> 02:22.210
At night I will be right here.

02:22.850 --> 02:24.370
I will boost the prop.

02:26.850 --> 02:29.010
For the title screen.

02:29.450 --> 02:29.850
Okay.

02:29.850 --> 02:35.410
Right now, um, we will only put the title in later.

02:35.410 --> 02:37.770
I will refactor the entity.

02:37.810 --> 02:38.290
Okay.

02:38.610 --> 02:45.130
Right now, let's only focus into the authorization and we will have one more block.

02:47.970 --> 02:49.210
We will the user.

02:49.250 --> 02:49.730
Okay.

02:50.210 --> 02:53.970
Because the boss right here who created the boss okay.

02:53.970 --> 02:54.810
We want that.

02:55.050 --> 02:58.830
So for that reason we will boost Those users came over here.

02:59.430 --> 03:02.070
And right now we need to make a referral.

03:02.470 --> 03:05.670
Let me, uh, load up the.

03:08.150 --> 03:08.990
The example.

03:12.750 --> 03:13.390
Right here.

03:14.190 --> 03:17.910
It will load the the ties and the reference.

03:18.350 --> 03:18.710
Okay.

03:18.710 --> 03:20.150
Let me copy everything.

03:24.670 --> 03:25.190
Okay.

03:25.550 --> 03:32.270
We will import the mongoose, uh, right here and reference remain users.

03:33.870 --> 03:34.390
Okay.

03:36.110 --> 03:39.310
And it already imported both Mojo.

03:42.670 --> 03:46.230
Navigator an already successfully started.

03:46.270 --> 03:46.790
Right.

03:49.750 --> 03:54.350
And let me create the boss in a very widely.

04:02.930 --> 04:08.330
Elizabeth Norris is our boss and we would like to recast.

04:08.370 --> 04:08.810
Okay.

04:09.370 --> 04:13.210
Don't focus into the detail first.

04:14.170 --> 04:14.410
Right.

04:14.410 --> 04:15.210
Here we go.

04:15.210 --> 04:16.050
Boss one.

04:18.810 --> 04:19.970
Uh, we need to inject.

04:25.450 --> 04:28.090
Um, I completely forgot.

04:32.650 --> 04:34.490
To put on a model injection.

04:37.010 --> 04:37.250
Um.

04:39.170 --> 04:39.890
Let's see.

04:41.250 --> 04:44.170
Um, make sure we involve the team.

04:47.250 --> 04:48.290
Boss module.

04:48.970 --> 04:49.970
Best over here.

04:57.870 --> 05:02.510
Must we embark directly from the schema?

05:02.550 --> 05:02.990
Okay.

05:07.590 --> 05:08.310
Here we are.

05:08.310 --> 05:15.750
The last thing we need to create is the number one.

05:29.910 --> 05:30.710
Schema.

05:42.270 --> 05:42.750
Okay.

05:44.550 --> 05:45.750
Insert a module.

05:57.620 --> 06:01.180
After that, let's say we need to inject us.

06:05.740 --> 06:09.420
Into moral moss.

06:10.180 --> 06:11.620
Uh, from the entity.

06:11.660 --> 06:12.140
Okay.

06:12.180 --> 06:12.580
Don't.

06:12.620 --> 06:14.380
Don't import us from Next.js.

06:41.740 --> 06:43.020
What about the user?

06:43.460 --> 06:43.860
Okay.

06:43.860 --> 06:45.500
Right here I will find user.

06:47.620 --> 06:47.980
Uh.

06:48.100 --> 06:48.980
Right now.

06:49.860 --> 06:54.080
Right now, we will invoke involve the user over here.

06:55.960 --> 06:56.400
Okay.

06:56.440 --> 06:58.520
We just demonstrate it later.

06:58.880 --> 07:03.560
In order to inject the analytics, we should inject the service.

07:03.600 --> 07:04.000
Okay.

07:04.040 --> 07:07.280
It much more better than invoke directly.

07:07.320 --> 07:10.080
But right now we only focus.

07:15.560 --> 07:19.000
Like, only only focus in the authorization.

07:19.040 --> 07:19.520
Okay.

07:58.140 --> 07:59.220
Let me say.

08:01.340 --> 08:04.220
Let me copy this one over here.

08:04.540 --> 08:04.900
Okay.

08:04.940 --> 08:10.900
After we already got a user, we would use the one over here.

08:11.460 --> 08:13.380
Use okay.

08:13.980 --> 08:15.100
And new bot.

08:15.700 --> 08:16.180
So.

08:18.660 --> 08:21.380
To use our tool.

08:24.900 --> 08:26.380
And we need to apply.

08:28.660 --> 08:30.860
New boss one last time.

08:31.900 --> 08:33.740
And why boss.

08:34.180 --> 08:36.380
So that's why.

08:41.620 --> 08:43.260
And we got the error.

08:43.300 --> 08:48.500
Because inside the boss module we should invoke the user.

09:07.400 --> 09:07.920
Okay.

09:12.880 --> 09:18.280
Now, let me, uh, duplicate entire folder.

09:37.200 --> 09:40.000
And insert a controller.

09:41.040 --> 09:42.760
We need to rename that boss.

09:49.630 --> 09:51.070
With the Boston Marathon.

09:51.070 --> 09:51.830
And right here.

09:51.870 --> 10:00.470
Let's remove everything and say, okay, after that, let's check the database.

10:14.990 --> 10:17.350
Uh, right here we only.

10:19.470 --> 10:22.470
Uh, we don't have users.

10:23.790 --> 10:24.910
Let me say why.

10:28.150 --> 10:29.470
Or the reason?

10:29.470 --> 10:33.910
Because I forgot to put the schema decorator.

10:34.070 --> 10:35.670
Okay, let's remove that.

10:36.910 --> 10:39.110
And I also forgot.

10:39.110 --> 10:39.990
Relentless.

10:40.030 --> 10:42.390
Okay, let's pretend to be masked.

10:46.710 --> 10:47.030
First.

10:47.030 --> 10:47.730
I'm not.

10:49.730 --> 10:50.290
Okay.

10:51.010 --> 10:53.010
So let's.

10:56.410 --> 10:57.410
Let me drop.

11:11.250 --> 11:12.570
And refresh.

11:23.570 --> 11:24.010
Okay.

11:24.010 --> 11:26.050
For now, we already have the title.

11:26.570 --> 11:39.050
And let me show you possible in order to get your own boss, if we use the following, we will drop.

12:01.630 --> 12:11.750
Furthermore around at mid and final or actually the get go here okay.

12:11.790 --> 12:20.470
Furthermore like this or the bus over here also the same at the bus or here it much more better.

12:21.470 --> 12:27.630
I want the admin can perform the action okay.

12:30.630 --> 12:39.190
And I want the user can update its boss.

12:40.030 --> 12:40.550
Okay.

12:41.230 --> 12:44.890
So let's say how to do Told us.

12:56.890 --> 12:59.410
Let's open the logo right here.

13:00.570 --> 13:02.010
Did you say this is the idea?

13:02.050 --> 13:02.610
Right?

13:02.650 --> 13:04.810
This is clearly the boss ID.

13:05.370 --> 13:10.930
This is not a real ID or the user.

13:12.250 --> 13:14.930
It will not be user ID, right?

13:14.930 --> 13:15.570
For that reason.

13:15.610 --> 13:19.410
It's clearly not work in this sky.

13:19.690 --> 13:22.490
And it always throws error.

13:23.330 --> 13:24.290
Let me show you.

13:35.210 --> 13:36.810
Okay, boss.

13:39.770 --> 13:41.530
Change the path.

13:43.480 --> 13:44.000
Right.

13:48.280 --> 13:49.040
And, uh.

13:53.920 --> 13:57.560
For example, I will buy this thing.

14:02.240 --> 14:08.240
And I also sign in with this account.

14:08.280 --> 14:08.760
Okay.

14:09.640 --> 14:11.360
This is clearly the account.

14:20.640 --> 14:23.720
Let's see what is on the right road.

14:23.760 --> 14:24.160
Arrow.

14:24.640 --> 14:25.160
Okay.

14:25.840 --> 14:28.360
So I hope you understand.

14:28.360 --> 14:29.800
Why is the road arrow?

14:29.840 --> 14:33.000
Because this is clearly different, right?

14:33.560 --> 14:40.840
So that is in the next video we will step by step and fixing that issue.

14:41.000 --> 14:43.000
So I will see you in the next one.
