#5: Build RESTFul API ✌ Handling DELETE Request in REST API using NodeJS & MongoDB in Hindi 2020

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 65

  • @rokibulhasanrijon8529
    @rokibulhasanrijon8529 4 роки тому +7

    One day two videos ..soo much effort ....now it's time to watch this one...

  • @samiRediAmaniTekeshAlazar
    @samiRediAmaniTekeshAlazar Рік тому

    bro i ont even speak hindi but this gusy in youtube make it so complex ... but i got the point when i saw your video just for 5min and solved my issue ... tnx bro!!

  • @visitor_t-w3p
    @visitor_t-w3p 6 місяців тому

    lets go Boom...awesome! 🤟🤟🤟🤟

  • @RAKESHSINGH-mt6uk
    @RAKESHSINGH-mt6uk 2 роки тому

    hero h bhai apna

  • @krishnalakhi1996
    @krishnalakhi1996 4 роки тому +1

    Great work ...........easy understandable

  • @sandygaming1028
    @sandygaming1028 2 роки тому +2

    thapa sir and spelling mistake is a better story than Twilight 😅😅

  • @geeksoftechworld8882
    @geeksoftechworld8882 3 роки тому +1

    Awesome brother. Keep up the good work. God bless you 🎉

  • @loveleensingh1805
    @loveleensingh1805 2 роки тому +1

    Thumbs Up To Your Efforts👍👍👍👍👍

  • @arshadjuj
    @arshadjuj 4 роки тому +1

    Great effort sir G

  • @thesimplegamer1002
    @thesimplegamer1002 3 роки тому +1

    Sir your teaching is very good and we like your spelling mistakes because that things may be done by us also. All the best sir

  • @sarwanchouhan2368
    @sarwanchouhan2368 Рік тому

    Thank u 🙏🏻🙏🏻very much sir it was very helpful for me ...❤❤

  • @sandeepnath2294
    @sandeepnath2294 2 роки тому +1

    can we use our all crud API function in a separate file or students.js? like with exports module

  • @uravashisparrow5741
    @uravashisparrow5741 4 роки тому

    1k videos hone me bs 2 video bache hai sir...
    Party to banti hai👍👍
    Reply dene me kanjusi mt dikhaye

  • @hamzajaved6110
    @hamzajaved6110 2 роки тому

    amazing bro
    love you

  • @tazimansari1243
    @tazimansari1243 3 роки тому

    Very Nice and helpful video

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

    Greate brother

  • @loveleensingh1805
    @loveleensingh1805 2 роки тому

    Great Brother!!!

  • @nishantbharwani852
    @nishantbharwani852 3 роки тому +1

    3:25 iska transfer aagya..isne YT par admission leli😂😂

  • @divyatulasik9442
    @divyatulasik9442 4 роки тому +1

    Thank you sir 👍

  • @soniramgaur564
    @soniramgaur564 2 роки тому

    well explained👏👍

  • @rajuraj1257
    @rajuraj1257 4 роки тому

    Nice video . Thanks 🙏🙏

  • @mohammadyaseen5339
    @mohammadyaseen5339 3 роки тому

    You are awesome.

  • @hometvfirestick
    @hometvfirestick 3 роки тому

    challange no 2 ka video kha hai sir?

  • @medipakpagare
    @medipakpagare 3 роки тому

    Very good channel

  • @hiteshsuthar1097
    @hiteshsuthar1097 3 роки тому +1

    Thanks❤️

  • @SuhelKhan-vb7su
    @SuhelKhan-vb7su 4 роки тому +1

    Could you please start the Photoshop for beginners because I'm beginners

  • @ujjwaljain9780
    @ujjwaljain9780 3 роки тому +1

    app.delete("/students/:name",async(req,res)=>{
    const val=req.params.name;
    const findByNameAndDelete=await Student.deleteOne({name:val})
    res.send(findByNameAndDelete);
    })

    • @srijansinha6921
      @srijansinha6921 3 роки тому

      My doubt is const findByNameAndDelete=await Student.deleteOne({name: req.params.name})
      why this line of code is showing error with req.params.name but not yours which is defining req.params.name under val variable. Please clarify my doubt

  • @brightthoughtchannel5164
    @brightthoughtchannel5164 4 роки тому

    Sir ho sakey to solidity mein Non fungible and fungible token easy way men banana bata den. Thanks.

  • @ishtiaqahmad4118
    @ishtiaqahmad4118 3 роки тому

    good karaachi

  • @kashafabdullah2872
    @kashafabdullah2872 2 роки тому

    Greatt

  • @rajansharma7407
    @rajansharma7407 3 роки тому

    unable to delete i think findbyidtanddelete is not orking properly in my case can anybody tell me why it is not working

  • @nikhil_squats
    @nikhil_squats 4 роки тому

    Agla video kon se topic pe?? Mongo dB atlas?? Please reply

  • @gmithun
    @gmithun 3 роки тому

    nice video

  • @nice.hemant
    @nice.hemant 3 роки тому

    Which software you are using for screen record. Plz tell me.

  • @fsociety692
    @fsociety692 3 роки тому

    can someone tell me how we can do crud operation with name or email with id its working but with name and email not working

  • @mdfaizanalam_
    @mdfaizanalam_ Рік тому

    correct the sequence in playlist

  • @allpakistan4838
    @allpakistan4838 3 роки тому

    Sir te delet by name nhy hota hy bhot try ki hy....??

    • @fsociety692
      @fsociety692 3 роки тому

      koi solutin mila k nhn

    • @kashifahmed_1995
      @kashifahmed_1995 3 роки тому +1

      app.delete("/st/:name",async(req,res)=>{

      const StudentData=await Student.deleteOne({name:req.params.name})
      res.status(201).send(StudentData)
      console.log(StudentData)
      })

    • @fsociety692
      @fsociety692 3 роки тому +1

      @@kashifahmed_1995 delete is working but read not working i use find and findOne both but its not showing the data

    • @kashifahmed_1995
      @kashifahmed_1995 3 роки тому

      @@fsociety692 app.get("/students/:name",async(req,res) =>{

      try{

      const studentData = await Student.find({name:req.params.name})
      res.status(201).send(studentData)
      console.log(studentData)
      }
      catch(e){
      res.status.apply(500).send(e)
      }
      })
      Code to read. Just use find

  • @SubhamKumar-9009
    @SubhamKumar-9009 3 роки тому

    best

  • @sayandas4356
    @sayandas4356 Рік тому

    can you give me the code How to get data By name

  • @computeearning432
    @computeearning432 3 роки тому

    boom guys

  • @balteebhaii5838
    @balteebhaii5838 4 роки тому

    ❤️❤️❤️❤️

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

    sir aap ki contect no. chahiye mujhe corce karna h

  • @kashifahmed_1995
    @kashifahmed_1995 3 роки тому +1

    Can we delete by name. The following request is not working:-
    app.delete("/student/:name",async(req,res) =>{
    try{
    const del_StudentData = await Student.findByNameAndDelete({name:req.params.name})
    res.status(201).send(del_StudentData)
    console.log(del_StudentData)
    }
    catch(e){
    res.status.apply(500).send(e)
    }

    • @kashifahmed_1995
      @kashifahmed_1995 3 роки тому

      app.delete("/st/:name",async(req,res)=>{

      const StudentData=await Student.deleteOne({name:req.params.name})
      res.status(201).send(StudentData)
      console.log(StudentData)
      })
      The above code is working
      But /student/:name is not working , other than this it is working with all endpoints

    • @fsociety692
      @fsociety692 3 роки тому

      @@kashifahmed_1995 bro not working name sy nhn horha ha id sy ho jata ha

    • @kashifahmed_1995
      @kashifahmed_1995 3 роки тому

      @@fsociety692 Its working then only I have posted the answer. If you can send me your email then I can send the photo of it working.

    • @uttamsingh5465
      @uttamsingh5465 2 роки тому

      @@kashifahmed_1995 u might have declared require: true while creating schema , try removing require:true from name in Schema

    • @kashifahmed_1995
      @kashifahmed_1995 2 роки тому

      @@uttamsingh5465 So this was around more than 1 and half year ago. I might have used required:true;
      I've forgotten.

  • @ankitagarawal4641
    @ankitagarawal4641 2 роки тому

    app.get('/students/:phone', async (req, res) => {
    try {
    const _phone = req.params.phone;
    // console.log(_phone)
    const studentData = await Student.find({ _phone });
    res.status(200).send(studentData);
    } catch (e) {
    // console.log(e)
    res.status(500).send(e);
    }
    })
    this code works fine, But i just want to know why object destructering dosent work here.
    Your videos are awesome keep doing great work and Thanks.

    • @maheshmadiraju866
      @maheshmadiraju866 2 роки тому +1

      becos u are using _phone and defined it in database as just phone

    • @uttamsingh5465
      @uttamsingh5465 2 роки тому

      @@maheshmadiraju866 true

  • @bhautikvachhani8342
    @bhautikvachhani8342 Рік тому

    app.delete("/students/:id", async(req, res) => {
    try {
    const _id = req.params.id;
    const result = await Student.findByIdAndDelete(_id);
    res.send(result);
    } catch (error) {
    res.send(error);
    }
    })

  • @GlobalCinemaJunction
    @GlobalCinemaJunction Рік тому

    app.get("/student/:name", async(req, res)=>{
    try{
    const names = req.params;
    // res.send(names)
    const dataname = await Student.findOne(names)
    // console.log(dataname)
    res.send(dataname)
    }catch(e){
    console.log("Ok data")
    }
    })