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 😉😉

КОМЕНТАРІ • 160

  • @JigsawXop
    @JigsawXop 6 місяців тому +20

    pratice and strted reading ur notes worth 99/-

    • @HelloWorldbyprince
      @HelloWorldbyprince  6 місяців тому +7

      Thanks a lot

    • @isportshigylight
      @isportshigylight 3 місяці тому +1

      bhai pdf bhej dena it will be helpfull for me

    • @Palestinepakistan786
      @Palestinepakistan786 3 місяці тому

      @@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...

    • @sanyogdhakal8567
      @sanyogdhakal8567 2 місяці тому

      @hitesh_jain bro can you give me notes im from nepal and indian payment method not works so please

    • @sanyogdhakal8567
      @sanyogdhakal8567 2 місяці тому

      bro while updating it shows person not found plz help me

  • @Mohitkumar70554
    @Mohitkumar70554 4 дні тому +1

    sir ap jasa pura UA-cam pr koy bhe nhe padhata thank you sir bhut accha sa samaj aa gya Nodejs 💛💫

  • @shubhamgoswami8751
    @shubhamgoswami8751 4 місяці тому +3

    Kitna video dekha but nodejs yhi se smjh aa rha bhut maza aa gya

  • @muradiancode
    @muradiancode 6 місяців тому +2

    Love from Bangladesh. Awesome series , Everyday I just complete one video , practice all over the day

  • @AYUSHKUMAR-xj4wc
    @AYUSHKUMAR-xj4wc 3 місяці тому

    Awesome Brother. I understood Routing completely. Thanks a lot.

  • @lohitkumarpatra6906
    @lohitkumarpatra6906 6 місяців тому

    Tecahing style is awsome bhaiya,understanding each and everything,homework done...

  • @RahulSharma-wv3hs
    @RahulSharma-wv3hs Місяць тому +1

    Bhai ossmmm yl, jitna achha padaya bhai apne, mujhe coding ki bilkul knowledge nhi thi fir bhi node samajh aa gya

  • @EducationQpkr
    @EducationQpkr 3 місяці тому

    Thank you! bhaiya ,I have learned so many things from this Node.js Series. 💚

  • @Mohitkumar70554
    @Mohitkumar70554 4 дні тому +1

    Task is Done sir 🙏🙏Thank you sir 🙏🙏

  • @vidushiagrawal4237
    @vidushiagrawal4237 3 місяці тому

    You explained really well and your videos are really helpful , Thankyou for making such informative videos.

  • @rohit45749
    @rohit45749 5 місяців тому

    Great explaination Bhaiya❤❤

  • @arushraj3807
    @arushraj3807 3 місяці тому

    nice way of explaining. Thanks a lot.

  • @abhijeetmishra3804
    @abhijeetmishra3804 3 місяці тому

    Nailed it..wonderfull

  • @_hulk748
    @_hulk748 Місяць тому

    Thankyou for the wonderful explanation sir🙏🙇‍♂✨💖

  • @vandanayadav5657
    @vandanayadav5657 4 місяці тому

    Superb Sir, No one can teach, like you🤘🙏

  • @soumendasrollno.3596
    @soumendasrollno.3596 4 дні тому

    awesome serise sir i feel confidente after done exercise thanks you for your contribution

  • @vikasgangwar2067
    @vikasgangwar2067 5 місяців тому

    Bro the way u teach is very good for a students

  • @HarshSharma-ff3ox
    @HarshSharma-ff3ox 4 місяці тому

    Awesome 💯💯

  • @satyamchoudhary2573
    @satyamchoudhary2573 5 місяців тому

    Wow mast samajh aya

  • @67_d_amanpandey2
    @67_d_amanpandey2 6 місяців тому

    Bro nowadays I am studying front end but as I finish it I'll go through it please keep uploading it 🙏🙏🙏

  • @playwithkoki
    @playwithkoki 3 місяці тому

    Great content ❤

  • @TalhaTabrez7
    @TalhaTabrez7 26 днів тому

    Thank you bhai!!

  • @udayvlogs4real747
    @udayvlogs4real747 11 днів тому

    sach much home work kardiya !!

  • @truptiukey8875
    @truptiukey8875 2 місяці тому +1

    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.

  • @ajayraj8592
    @ajayraj8592 Місяць тому

    This concept is amazing-all concepts are covered in the video. sir really thanks.👃

  • @snehasingh4698
    @snehasingh4698 Місяць тому

    Thankyou so much

  • @rohit45749
    @rohit45749 5 місяців тому

    Thanks Bhaiya❤❤❤❤

  • @SpidyStreams
    @SpidyStreams Місяць тому

    great learning

  • @user-fh2wy2zv2i
    @user-fh2wy2zv2i 6 місяців тому

    I practiced all. Confidence on peak. best wishes & love for u ❤

  • @poojalahane2584
    @poojalahane2584 2 місяці тому +1

    THANK YOU SO MUCH............

  • @Kabir-Ahmad
    @Kabir-Ahmad 6 місяців тому

    Best course for node.js and backend as well 🥰

  • @RahulSharma-wv3hs
    @RahulSharma-wv3hs Місяць тому

    thank you so much

  • @arjunsolanki2612
    @arjunsolanki2612 6 місяців тому

    Great lectures Bhaiya thank you for this series.

  • @mohdalizilani9896
    @mohdalizilani9896 6 місяців тому +4

    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

    • @HelloWorldbyprince
      @HelloWorldbyprince  6 місяців тому

      Thanks for such a huge support

    • @vivekchandak2759
      @vivekchandak2759 2 місяці тому

      can you tell me what that workspace is where is checking all things

  • @Gyaan_Kee_Baat
    @Gyaan_Kee_Baat 3 місяці тому

    great video

  • @abhishekkumarmehta743
    @abhishekkumarmehta743 6 місяців тому +1

    Awesome😍

  • @ridwanrahaman9306
    @ridwanrahaman9306 2 місяці тому

    Thank you sir

  • @yogeshjat1204
    @yogeshjat1204 Місяць тому

    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

    • @ItsAbhiDestiny
      @ItsAbhiDestiny Місяць тому +1

      Akshay Saini - Namaste React course..Best in the Market ( paid )

  • @bhushan321
    @bhushan321 6 місяців тому

    Amazing work bhai❤

  • @062nayemurrahman8
    @062nayemurrahman8 6 місяців тому +1

    Great explanation

  • @Gaming_Pradesh
    @Gaming_Pradesh 3 місяці тому

    Well Explained Thank You #princebhai

  • @vedbhanushali608
    @vedbhanushali608 6 місяців тому

    thanks sir

  • @vivekchandak2759
    @vivekchandak2759 2 місяці тому

    what are you using for testing or putting and creating user can you tell what workspace is that

  • @AliinNITW
    @AliinNITW 6 місяців тому

    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

  • @yashu1703
    @yashu1703 6 місяців тому

    Best video ❤

  • @sauravdhar1696
    @sauravdhar1696 6 місяців тому

    Amazing

  • @bipinsingh2291
    @bipinsingh2291 2 місяці тому

    Task done sir

  • @harshitthakur1214
    @harshitthakur1214 15 днів тому

    bhaiya can you please tell me which extension are you using for autocompletion of your code ....btw thanks

  • @anonymous090
    @anonymous090 5 місяців тому

    Homework done ✅

  • @roteshkumar8480
    @roteshkumar8480 9 днів тому

    #reallearning 🔥

  • @darshan.p6154
    @darshan.p6154 11 днів тому

    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

  • @coding24335
    @coding24335 4 місяці тому

    ♥️♥️♥️

  • @surajmendhe2594
    @surajmendhe2594 6 місяців тому

    Thanks sir

  • @yousufkhan1418
    @yousufkhan1418 2 місяці тому

    if condition is not picking error on providing wrong ID instead returning catch block error

  • @rohit45749
    @rohit45749 5 місяців тому

    ❤❤❤

  • @Crickaddict01
    @Crickaddict01 5 місяців тому

    I did it

  • @pumpkin2228
    @pumpkin2228 6 місяців тому

    🔥🔥🔥🔥🔥🔥

  • @sanjayvarma-ij7yc
    @sanjayvarma-ij7yc 2 місяці тому

    why my FindIdAndRemove is showing error and FindIdAndDelete is working help!!!

  • @harshitrajput2025
    @harshitrajput2025 2 місяці тому

    Is sorce code available in notes?

  • @subhamdash8407
    @subhamdash8407 Місяць тому

    thank U Sir

  • @janvipatel697
    @janvipatel697 2 місяці тому

    Sir app comments ke liye konsa extension use karte ho

  • @jaibairagi3481
    @jaibairagi3481 4 місяці тому

    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

  • @nails_by_taneya
    @nails_by_taneya 3 місяці тому +1

    Here's an error while deleting the person record which says: findByIdAndRemove is not a function?
    What to do with this one

    • @ritz3676
      @ritz3676 3 місяці тому

      Instead used this findByIdAndDelete

  • @deepakmehta4571
    @deepakmehta4571 4 місяці тому

    In futurur will u provide notes free?

  • @msgkediwane
    @msgkediwane 3 місяці тому

    Sir I have Done HomeWork ,you Gave Us Post And GET Api

  • @abhishektalwar409
    @abhishektalwar409 3 місяці тому

    Please make video on query string in node JS and image upload

  • @sanyogdhakal8567
    @sanyogdhakal8567 2 місяці тому

    bro while updating it shows person not found plz help me

  • @might023
    @might023 2 місяці тому

    not able to get the drive url

  • @adarsh_malviya
    @adarsh_malviya 6 місяців тому

    Video on relationship in mongodb?

  • @mohitrobbin5401
    @mohitrobbin5401 2 місяці тому

    😊

  • @mohitrobbin5401
    @mohitrobbin5401 2 місяці тому

    Done

  • @himanshuchoudhary9457
    @himanshuchoudhary9457 4 місяці тому

    Bhaiya I'm learning nodejs with SQL and it's very hard to find resources

  • @vanshgupta9729
    @vanshgupta9729 6 місяців тому

    👍

  • @khushiramginnare4961
    @khushiramginnare4961 6 місяців тому +1

    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.

  • @surajmendhe2594
    @surajmendhe2594 6 місяців тому +1

    sir we want source code please. help hogi .

  • @RahulSharma-wv3hs
    @RahulSharma-wv3hs Місяць тому

    bhai ye database ka name apne aap people kaise bn raha hai humne kahi define nhi kiya

  • @harshitanchan2277
    @harshitanchan2277 Місяць тому

    findByIdAndRemove is deprecated instead use findByIdAndDelete
    i got this error saying TypeError: Person.findByIdAndRemove is not a function

  • @nature11524
    @nature11524 3 місяці тому

    Its showing findByIdAndRemove is not a function

  • @trex4997
    @trex4997 Місяць тому

    bhaiya.............api isi ko bolte h kya ??

  • @RahulSharma-wv3hs
    @RahulSharma-wv3hs Місяць тому

    99 done

  • @aadrshdubey4469
    @aadrshdubey4469 4 місяці тому

    bhai koi notes de sakta hai kya

  • @mehedihasannnnn
    @mehedihasannnnn 6 місяців тому +1

    vaiya sab to thik hei but yead karne mei dikkat ho rah hei....

  • @parth8978
    @parth8978 Місяць тому

    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

    • @manishchoudhary2722
      @manishchoudhary2722 13 днів тому

      module.exports = router;
      you must have missed this part or exporting something else.

  • @shivamdevrani1330
    @shivamdevrani1330 5 місяців тому

    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

    • @HelloWorldbyprince
      @HelloWorldbyprince  5 місяців тому

      Tum wrong data ko bejkar dekho
      And see ki error kya aa rha h
      Tumko khud idea lag jayega

    • @shivamdevrani1330
      @shivamdevrani1330 5 місяців тому

      @@HelloWorldbyprince error show nhi kar rha, updated successfully aarha h aur na add ho rha h,
      Thanks bhaiya again for this playlist 🙏🙏🙏

    • @MohammedHasmi577
      @MohammedHasmi577 Місяць тому

      ​@@shivamdevrani1330bro Mera update nhi ho rha any reason please help

  • @rgkttechno3423
    @rgkttechno3423 4 місяці тому +2

    Muje ek point samj nhi aya collection ka name people hai or code me person name se connect kese ho rha hai?????????????????????????

    • @wasi5514
      @wasi5514 3 місяці тому

      haa same mera bhi yehi doubt hai . If you get it how it happened do tell me too.

    • @MoteeullahAzmi
      @MoteeullahAzmi 3 місяці тому

      you write api for server thats reason to connect person

  • @HarishKumar-jm5bk
    @HarishKumar-jm5bk 6 місяців тому +1

    middleware and authentication

  • @MohammedHasmi577
    @MohammedHasmi577 Місяць тому

    #princebhai update me problem aa rha hai plz help❤

  • @AbhishekRaj-in5jz
    @AbhishekRaj-in5jz 2 місяці тому

    Just now I paid and downloaded it

  • @user-fh2wy2zv2i
    @user-fh2wy2zv2i 6 місяців тому +1

    Present Sir ❤previous video incomplete 😥

  • @udayvlogs4real747
    @udayvlogs4real747 11 днів тому

    bro that flow chart is not accesable :

  • @MohammedHasmi577
    @MohammedHasmi577 Місяць тому

    Someone help me please why my update not work😢

  • @AJ-wf3wp
    @AJ-wf3wp 6 місяців тому

    Bhai are u going to build any project in this series?

  • @ponggapandit8707
    @ponggapandit8707 2 місяці тому

    aap ranchi me kaha rehte ho?

  • @muhammadshoaib4837
    @muhammadshoaib4837 6 місяців тому

    #nodejs

  • @rohitk472
    @rohitk472 6 місяців тому

    Node js bootcamp

  • @user-fh2wy2zv2i
    @user-fh2wy2zv2i 6 місяців тому

    #nodejs #backend_with_nodejs #nodejs2023 #mongodb #expressjs #CRUD_operation #free

  • @Let-s_Entertain....
    @Let-s_Entertain.... 3 місяці тому

    #princebhai

  • @f50achievers10
    @f50achievers10 6 місяців тому

    Day #06
    #Node_Js

  • @vishnusingh2300
    @vishnusingh2300 13 днів тому

    23

  • @MohammedHasmi577
    @MohammedHasmi577 Місяць тому

    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..." });
    }
    });