Complete MongoDB Tutorial #21 - Handling DELETE Requests

preview_player
Показать описание
🐱‍💻 View this course & other premium courses without ads on the Net Ninja Pro site:

🐱‍💻 Access the course files on GitHub:
(lesson code available from lesson 15 onwards)

🐱‍💻 Modern JavaScript Course:

Рекомендации по теме
Комментарии
Автор

I have completed a four year degree in computer science and engineering. And during my education I did not come across any instructors who conveyed the information as clearly as you. I would you like to thank you for your excellent teaching.

realthor
Автор

In the recent versions of the mongodb library, ObjectId should be used as a class constructor with the new keyword
.deleteOne({ _id: new ObjectId(req.params.id) })

lifeisgreen
Автор

Considering HTTP codes, I want to note that the right status after deleting should be 204 (no content) rather than 200 (success).
Also, when the client send an invalid ID, the response status should be 400 (bad request) and not 500 (server error) because the error is coming from the client and not from the server.

hamza-
Автор

I'm Brazilian and I was looking for this content, there's no similar Brazilian video, your explanation is very good, even I, who speak terrible English, managed to understand it with the automatic subtitles on YouTube, I'm studying this for a vacancy, if I succeed, I'll come back here to confirm, thank you very much

apolomoraes
Автор

Shaun, thanks again for what you do.
You're a teacher indeed!

olorundareagnes
Автор

Alright there gang, let's go. Thumbs up man, you're doing the most.

LemuelBensen
Автор

it's more of an express tutorial.
You are a great tutor

sangdilbiswal
Автор

Please can anyone help me with how I can send images and audio to mongo db

zipruschemicals
Автор

1:46 Should it be 204 here or not? I mean if we r deleting I think!

Abdallah_Ismail
Автор

hi guys.. in Postman, the delete is working fine, but in browser i'm getting an Error (localhost:3000/delete/12345), can someone help me pls? :D thank you

anaiahdominguez
Автор

Hi Shaun… not my first comment, yet, I wonder if you will be adding one more chapter for relational collections … I’m registered to your website course as well but I haven’t seen you going through this. Please … 🤲

ilan
Автор

Apparently the author doesn't like George Orwell 😀

petrsuchy