We come back in this video.
Let's see how we can implement a controller to first all employees.
So here we go.
So let's expand the all employees controller.
And here let's make a request to fetch all the employees as employees.
Is equal to await employee model find.
And that is it.
So lastly, I need to send the employees.
So let's see and make the request.
So we insert here.
This is an endpoint and let me hit send and these are the employees.
So again, we can filter out employee by name.
Let's say if the name is equal to John Ima.
So let's see if it might exist inside our collection.
Let's hit send and can see that we're going to have empty array because there is no IMA inside our employee
database.
So here we can pass in any query here to filter out our database.
So that is it, guys.
Then this video.
Let's see how we can implement to update.