Node Js Routing with Express | Update and Delete records in Nodejs MongoDB
Вставка
- Опубліковано 27 лип 2024
- Hey everyone, In this Node.js video, we dive into essential topics, exploring GET and POST methods, and understanding the API flow through a diagram. Participants gain insights into handling query parameters in Node.js and utilizing Express router middleware for efficient routing. The course progresses to updating data in Node.js, covering various data operations to provide a comprehensive understanding of practical applications in Node.js development. Join us as we navigate these crucial chapters to enhance your skills and mastery of Node.js.
🌟🌟 Notes & Assignment: topmate.io/helloworldbyprince...
🔥 NodeJS Complete Playlist: • NodeJS Tutorial For Be...
NodeJS Bootcamp [ Day 6 ]
🔥 For the Free NodeJS course, Please Do comments and like as much as you can
❤️ Like Aim: 500
❤️ Comments Aim: 350
Hit that like button, subscribe, and ring the notification bell to never miss a frustration-busting tip! Let's crush those DSA challenges and make learning fun again! 🚀📚
----------------------------------------------------------------------------------------
Follow me on:
💼 LinkedIn► / iamprince
📷 Instagram► / helloworldbyprince
🐦 Twitter► / prince_king_
📲 Telegram► telegram.me/helloworldbyprince
📘 Facebook► / helloworldofficials
----------------------------------------------------------------------------------------
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
00:00 Recap of Nodejs
02:28 GET and POST method
02:50 API Flow diagram
05:11 Query params in node js
12:47 Express router middleware
23:30 Update data in node js
34:10 data operation in nodejs
37:00 Summary of Database operation
----------------------------------------------------------------------------------------
►Our Playlists on:-
🔥 Tree: • Tree Data Structure & ...
🔥 Stack & Queue: • Stack & Queue Data Str...
🔥 Hashing: • Hashing Data Structure...
🔥 Graph: • Graph Data Structure &...
🔥 Matrix: • Matrix (Multidimension...
🔥 Recursion & DP: • Recursion
🔥 Heap: • Heap Data Structure & ...
🔥 Linked List: • Linked List Data Struc...
🔥 STL: • Standard Template Libr...
🔥 Leetcode: • LeetCode Solutions And...
🔥Competitive Programming: • Full course in Competi...
🔥 C++ Full Course: • C++ full Course in HINDI
🔥 Algorithms: • L-01 || Prefix Sum Arr...
🔥 Data Structure: • Data Structures with C...
------------------------------------------------------------------------
🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟
✨ Tags ✨
#nodejs #mongodb #mongoose #nodejs #programming #coding #programminglanguage #javascript #mongodb #tutorial #learning #leetcode #linkedin #webdev #webdeveloper #webdevelopment #development #developers #layoffs #pythonprogramming #java #javatutorial #bootcamp #course #coder #programminglife #node #nodejstutorial #nodejsdevelopment #princebhai #program #codes #js #cplusplusprogramming #programminglanguage #python #geeksforgeeksgate #leetcodesolutions #dsa #dsalgo #algorithm #datastructure #hindi #mongodbtutorialforbeginners #database #faang #google #microsoft #array #vector #golanguage #helloworld #node #technology #internship #job #jobsearch
node js
node js in hindi
node js by prince
nodejs prince
node js tutorial
node js projects
nodejs event loop
nodejs microservice
node js interview
node js playlist
node js API
node js thapa
node js crash course
node js tamil
node js express
node js backend
node js interview questions
node js tutorial in hindi
node js tutorial playlist
node js tutorial by prince
node js developer
node js developer roadmap
node js developer interview
nodejs api development
node js developer full course
node js developer job
node js developer resume
how to use router in node js
router and controller in node js
router in node
router in node js
router in node js express
#nodejs #mongodb #mongoose
Comment "#Princebhai" if you read this 😉😉
pratice and strted reading ur notes worth 99/-
Thanks a lot
bhai pdf bhej dena it will be helpfull for me
@@HelloWorldbyprince ... person i want to get your notes these are so sufficient for beckend i have a problem that i have jazzcash account...i want to get them...have you any solution i am from pakistan...i like your nodes js tutorial in only 20 days i comlete your course and give interview and i am selected problem is that i am beginer so sometime i revise topics and re write many so i want get them for my helping...
@hitesh_jain bro can you give me notes im from nepal and indian payment method not works so please
bro while updating it shows person not found plz help me
sir ap jasa pura UA-cam pr koy bhe nhe padhata thank you sir bhut accha sa samaj aa gya Nodejs 💛💫
Kitna video dekha but nodejs yhi se smjh aa rha bhut maza aa gya
Love from Bangladesh. Awesome series , Everyday I just complete one video , practice all over the day
Awesome Brother. I understood Routing completely. Thanks a lot.
Tecahing style is awsome bhaiya,understanding each and everything,homework done...
Bhai ossmmm yl, jitna achha padaya bhai apne, mujhe coding ki bilkul knowledge nhi thi fir bhi node samajh aa gya
Thank you! bhaiya ,I have learned so many things from this Node.js Series. 💚
Task is Done sir 🙏🙏Thank you sir 🙏🙏
You explained really well and your videos are really helpful , Thankyou for making such informative videos.
Great explaination Bhaiya❤❤
nice way of explaining. Thanks a lot.
Nailed it..wonderfull
Thankyou for the wonderful explanation sir🙏🙇♂✨💖
Superb Sir, No one can teach, like you🤘🙏
awesome serise sir i feel confidente after done exercise thanks you for your contribution
Bro the way u teach is very good for a students
Awesome 💯💯
Wow mast samajh aya
Bro nowadays I am studying front end but as I finish it I'll go through it please keep uploading it 🙏🙏🙏
Great content ❤
Thank you bhai!!
sach much home work kardiya !!
Amazing Nodejs series. Topics are covered very interestingly , no more boring learning videos and last think I had enjoyed the full learning. Thank you for such an Amazing Series.
Great to hear!
This concept is amazing-all concepts are covered in the video. sir really thanks.👃
Most welcome
Thankyou so much
Thanks Bhaiya❤❤❤❤
great learning
I practiced all. Confidence on peak. best wishes & love for u ❤
Keep it up
THANK YOU SO MUCH............
Best course for node.js and backend as well 🥰
Glad you think so!
thank you so much
Great lectures Bhaiya thank you for this series.
So nice of you
home work done , along with that successfully modelled dbs named college having collections like student , professor , branch . ♥♥love the series ,waiting for your Reactjs playlist as well , bro keep making content like this one day you will have millions subsciber this is starting most of us dont know about this channel , when i sharred this playlist with my friend they become wordliess . they are also enjoying your bootcamp♥♥. Great inititative , ♥♥from NIT-Warangal
Thanks for such a huge support
can you tell me what that workspace is where is checking all things
great video
Awesome😍
Thanks 🤗
Thank you sir
thank you so much bhiya sach me ye playlist game changing hai mene paid course se bhi pad liya lekin kishi ka samaj nahi aaya but app ke videos se mera node js ek dam clear ho gaya hai
Akshay Saini - Namaste React course..Best in the Market ( paid )
Amazing work bhai❤
Thanks ✌️
Great explanation
Glad it was helpful!
Well Explained Thank You #princebhai
thanks sir
what are you using for testing or putting and creating user can you tell what workspace is that
To update how actually we will get that object id since here we are doing statically that is we know the id and pasted but in dbs how will fetch that id dynamiccally and update
Best video ❤
Thanks
Amazing
Thanks
Task done sir
bhaiya can you please tell me which extension are you using for autocompletion of your code ....btw thanks
Homework done ✅
#reallearning 🔥
sir pls tell me how can i link the front end for adding the id . because in front end we don't have any id na so. how can we fetch the data of id
♥️♥️♥️
Thanks sir
So nice of you
if condition is not picking error on providing wrong ID instead returning catch block error
❤❤❤
I did it
🔥🔥🔥🔥🔥🔥
Thanks a lot
why my FindIdAndRemove is showing error and FindIdAndDelete is working help!!!
Is sorce code available in notes?
thank U Sir
Welcome
@@HelloWorldbyprince sir please share me the document
Sir app comments ke liye konsa extension use karte ho
ek doubt tha ki jab hum update kr rahe hai aapne prince ko update kiya theek hai but meko bob ko krna hai to kese krenge mtlb sirf name daala aur change ho gaya but kese pata chalega ki kese update krenge baakiyon ko bhi
Here's an error while deleting the person record which says: findByIdAndRemove is not a function?
What to do with this one
Instead used this findByIdAndDelete
In futurur will u provide notes free?
Sir I have Done HomeWork ,you Gave Us Post And GET Api
Please make video on query string in node JS and image upload
bro while updating it shows person not found plz help me
not able to get the drive url
Video on relationship in mongodb?
😊
Done
Bhaiya I'm learning nodejs with SQL and it's very hard to find resources
👍
Hey bro.
Thanks for sharing the great content.
But there are some suggestion and question.
Question: Instead of hard code res.status(500) or status(400) we can't make dynamic if possible?
Suggestion: While preparing the response object for error, we can return err.message instead of custom message.
Yes and yes
sir we want source code please. help hogi .
bhai ye database ka name apne aap people kaise bn raha hai humne kahi define nhi kiya
findByIdAndRemove is deprecated instead use findByIdAndDelete
i got this error saying TypeError: Person.findByIdAndRemove is not a function
Its showing findByIdAndRemove is not a function
bhaiya.............api isi ko bolte h kya ??
99 done
bhai koi notes de sakta hai kya
vaiya sab to thik hei but yead karne mei dikkat ho rah hei....
Mat yaad rakho
Roz notes revise karo bass
bhaiya got an error while using put unable to solve that please help me its a type error:routers.use requires a middleware function but got an object help me pls its 3 days over already while solving this
module.exports = router;
you must have missed this part or exporting something else.
bhaiya i have a question ==> in put method ,you are handling the cases 1.when error occured in updation using try and catch,2.when id not found using simple check , but when client gives the data which is not according to person schema then is there any way to show this error
Tum wrong data ko bejkar dekho
And see ki error kya aa rha h
Tumko khud idea lag jayega
@@HelloWorldbyprince error show nhi kar rha, updated successfully aarha h aur na add ho rha h,
Thanks bhaiya again for this playlist 🙏🙏🙏
@@shivamdevrani1330bro Mera update nhi ho rha any reason please help
Muje ek point samj nhi aya collection ka name people hai or code me person name se connect kese ho rha hai?????????????????????????
haa same mera bhi yehi doubt hai . If you get it how it happened do tell me too.
you write api for server thats reason to connect person
middleware and authentication
Yes i will make a video on them
#princebhai update me problem aa rha hai plz help❤
Just now I paid and downloaded it
Present Sir ❤previous video incomplete 😥
All the best
bro that flow chart is not accesable :
Someone help me please why my update not work😢
bhai merekobhi aa rahi he
Bhai are u going to build any project in this series?
Yes
aap ranchi me kaha rehte ho?
Basically belong from ramgarh
#nodejs
Node js bootcamp
#nodejs #backend_with_nodejs #nodejs2023 #mongodb #expressjs #CRUD_operation #free
#princebhai
Day #06
#Node_Js
Keep learning
23
Homework for taste item
Edit : please do find() method so that we will got multiple values in dbs , i have made this mistakes thats why i am edit comment❤
router.get("/menuItem/:tast", async (req, res) => {
try {
const tast = req.params.tast;
if (tast == "sweet" || tast == "spicy" || tast == "sour") {
const data = await MenuItem.findOne({ taste: tast });
res.status(200).json(data);
} else {
console.log("data not found....");
res.status(404).json({ err: "not found...." });
}
} catch (err) {
console.log(err);
res.status(500).json({ err: "internal server error..." });
}
});