1
00:00:09,090 --> 00:00:11,190
We come back in this video.

2
00:00:11,190 --> 00:00:15,930
Let's see how we can implement a controller to first all employees.

3
00:00:16,170 --> 00:00:17,880
So here we go.

4
00:00:17,970 --> 00:00:21,870
So let's expand the all employees controller.

5
00:00:21,870 --> 00:00:29,010
And here let's make a request to fetch all the employees as employees.

6
00:00:30,720 --> 00:00:35,460
Is equal to await employee model find.

7
00:00:35,640 --> 00:00:36,800
And that is it.

8
00:00:36,810 --> 00:00:40,260
So lastly, I need to send the employees.

9
00:00:41,250 --> 00:00:44,150
So let's see and make the request.

10
00:00:44,160 --> 00:00:45,650
So we insert here.

11
00:00:45,660 --> 00:00:50,700
This is an endpoint and let me hit send and these are the employees.

12
00:00:50,790 --> 00:00:55,080
So again, we can filter out employee by name.

13
00:00:55,110 --> 00:01:00,380
Let's say if the name is equal to John Ima.

14
00:01:00,390 --> 00:01:04,500
So let's see if it might exist inside our collection.

15
00:01:04,650 --> 00:01:11,730
Let's hit send and can see that we're going to have empty array because there is no IMA inside our employee

16
00:01:11,730 --> 00:01:12,550
database.

17
00:01:12,570 --> 00:01:18,380
So here we can pass in any query here to filter out our database.

18
00:01:18,390 --> 00:01:19,980
So that is it, guys.

19
00:01:20,340 --> 00:01:21,300
Then this video.

20
00:01:21,300 --> 00:01:24,750
Let's see how we can implement to update.

