Implement Search, Sort, Filter and Pagination Rest API With Node JS  | Express | MongoDB

Implement Search, Sort, Filter and Pagination Rest API With Node JS | Express | MongoDB

CyberWolves

1 год назад

86,349 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sahil Khatri
Sahil Khatri - 27.09.2023 20:57

Bro please upload the next part of this video which is related to frontend api handling

Ответить
🌟 Bunny The Pro Rider
🌟 Bunny The Pro Rider - 13.08.2023 17:24

bhai hindi me bhi banao na

Ответить
Rakesh Kumar Parida
Rakesh Kumar Parida - 16.07.2023 13:12

Which theme you are using

Ответить
ghulam mohiyuddin
ghulam mohiyuddin - 05.05.2023 15:15

what a quick implementation ... great dear thanks for this logic.

Ответить
bagmat
bagmat - 25.04.2023 21:35

what tool did you use to create your mock-ups

Ответить
Mehemmed Nezerli
Mehemmed Nezerli - 25.04.2023 03:05

Hi friend, I need a help. How can I give two options to the sort method? for example in this video we have sort by genres so can we add another options such as lemme say we have films and they have genres and costs and we have to sort it not only in genres but also in costs for example : movie "Interstellar"
cost:"12"
genre:"Sci-fic"
and user can sort only in cost or only in genre or with both of them
Can you help me? thanks in advance man:)

Ответить
Franco De Paulo
Franco De Paulo - 18.03.2023 19:43

Beautiful

Ответить
Optimus Prime
Optimus Prime - 08.02.2023 07:26

This is really amazing video man.
Keep posting such videos.
BTW I loved the way you explain each step u worked on.

Ответить
Jeref D
Jeref D - 03.02.2023 07:44

bro use "let sort = req.query.sort || "rating"; " so how can it sort by year ? How can I get the year and the rating at the same time, sir?

Ответить
Kazu Gaming
Kazu Gaming - 29.01.2023 10:22

Bro, been looking for a system like this one, thanks bro

Ответить
HR!T
HR!T - 04.01.2023 18:53

Good tutorial!

Ответить
Mohamed Fayis
Mohamed Fayis - 03.01.2023 20:03

what if we want to use search for Number datatype?

Ответить
Stain
Stain - 05.11.2022 15:27

bro can you merge this with mongodb database

Ответить
HERO LOOTER
HERO LOOTER - 21.10.2022 15:09

Your theme bro? And font?

Ответить
Alal Uddin
Alal Uddin - 15.10.2022 08:25

Thank you so much sir...

Ответить
Ibrahim Ahmad - @FeyroozeCode
Ibrahim Ahmad - @FeyroozeCode - 13.10.2022 14:56

This video need mores view

Ответить
Viki
Viki - 13.10.2022 13:03

thank you sir for quality content waiting for the next video.

Ответить
Maniac
Maniac - 03.10.2022 18:49

Thanks, helped me a lot

Ответить
Eshw23
Eshw23 - 27.09.2022 22:29

The postman part was very confusing, please give a quick explanation of how to set up these API's or databases next time.

Ответить
O-Learn (A Learning platform)
O-Learn (A Learning platform) - 22.09.2022 18:57

amazing video editing. You can make a video editing course as well. Nice code!

Ответить
alam jamal
alam jamal - 13.09.2022 18:24

Frontend code??

Ответить
Pit Pat
Pit Pat - 10.09.2022 01:17

I can't get my total to go below eight, even when I filter. I have eight documents in the database

EDIT: Okay I did it.

const total = await Project.find({name: {$regex: search, $options: "i"}}).where("genre").in([...genre]).countDocuments({
language: { $in: [...genre] },
name: { $regex: search, $options: "i" },
});

I had to add the filters (without the skip and limit) to the total.

Ответить
nita gabriel
nita gabriel - 26.08.2022 18:36

Hi i get this error when i try to make the search with postman

const castError = new CastError();
^

CastError: Cast to ObjectId failed for value "movies" (type string) at path "_id" for model "Recipe"
at model.Query.exec (C:\Users\Gabi\OneDrive\Desktop\food cloud\server\node_modules\mongoose\lib\query.js:4786:21)
at model.Query.Query.then (C:\Users\Gabi\OneDrive\Desktop\food cloud\server\node_modules\mongoose\lib\query.js:4885:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
messageFormat: undefined,
stringValue: '"movies"',
kind: 'ObjectId',
value: 'movies',
why i get this ? ty

Ответить
Agustin Cristobo
Agustin Cristobo - 23.08.2022 03:07

nicely done, i finally understand how to make a search for my api 😊. ty a lot sir

Ответить
Kalpesh Wani
Kalpesh Wani - 11.08.2022 07:44

kab ayegi next video

Ответить
Vijay Koladara
Vijay Koladara - 30.07.2022 16:29

How to implement in react ?

Ответить
LegendsHaveit
LegendsHaveit - 22.07.2022 08:32

@CyberWolves please upload frontend part🙏

Ответить
Kalpesh Wani
Kalpesh Wani - 12.07.2022 18:50

Please upload the next video

Ответить
Tarunkumar Gatla
Tarunkumar Gatla - 11.07.2022 16:15

Create more nodejs projects🙏

Ответить
Jainil Maheshwari
Jainil Maheshwari - 07.07.2022 20:55

Make a video on implementing Roles in api

Ответить
vanith b
vanith b - 21.06.2022 23:09

bro... we are waiting next video.. please upload it.. thanks lot bro

Ответить
Kalpesh Wani
Kalpesh Wani - 21.06.2022 07:37

👍

Ответить
Karam Sahoo
Karam Sahoo - 20.06.2022 18:35

Nice one

Ответить