Hi everyone!
In this video I want to build one more features.
Okay, first of all is here we have a get all users what I want to do right now.
I want it can show okay.
For example right here I will put the query string over here.
And I will put the name for example like John okay.
Or I can put the gmail.com over here okay I will allow this line of code can be very and short by name
or email.
So how do I do that.
Well in here if we open the user service open the file method.
Firstly we will file own by the is active will be true right?
Right now, I think I will, um, separate anything into the another variable.
I would value over here, and I.
Think we would end it right now.
Right now.
Okay.
With the very right here.
I will put that right over here.
So, um.
After us.
Let me move a little bit.
Right here is the controller.
We have a file on method.
Right.
We need to put the query query string Q over here.
And very string I would directly look over here both.
Plus we use To go straight.
Okay.
And right here we need to add a little bit of chat hip to assist what we need to do if we have a queue
where we screen over here, it means we want to share that right.
So in the very right here how I can show that.
Let me show you.
In order to show us by the email or username we want to do something like that.
Let let me help up.
Let me have up a bash script over here.
We can use the Or operator.
Okay.
And in the Or operator we can put the possible I in here we can put the object.
Okay.
The first object we can search by name.
And the second object we can search by email.
Okay.
And right here we can move a little bit up.
Uh.
New regress.
Or we can filter by using regular expression.
Uh, like I guess.
Go pro here.
We can put one more object to be regress.
Okay.
The request request right here we can go to queue and we will what the option will be I okay.
This will allow we can shop by lowercase okay.
We will disable the lowercase or uppercase in this case.
And the request right here we will shut by regular expression for example like run Shown from last.
Okay.
If this is the name of the user, if I would show over here as well one, it will find the song Thomas
over here.
Right.
So for that reason I will need to use the request.
And we need to work exactly the same over here.
Right.
Okay.
And, uh, so that is what we need to move.
I will pick it up directly over here.
I will check a little bit.
I will move over here and I will call the very not let us.
Equal okay.
And I will work directly the query over here.
Okay.
If we have a very string We will add that this is the very object and we will update this audio here.
Now let me show you how it works.
Over here.
Let me get on users.
Over his work.
Right.
Right here.
Uh, let me rename a little bit the user.
Let me rename the last one into, uh, format.
Right here.
If I shot for kill zone.
Let's say we, uh, we got an internal server error.
Let me double check.
Uh, right, here is your options.
Okay.
Let me say it again.
Now you will say right here.
Uh, we still find the trauma, the reason, the trauma.
Because the email right here is also matched with this guy, right?
So whatever you find out, you can say we already got the Thomas.
Okay.
So in here we can always chain email.
So we have that.
And if I search for John again now you'll see right here.
We already got the John account.
So that is done for the video.
I will see you.