#4: Build RESTFul API ✌ Handling PUT❓ PATCH Request in REST API using NodeJS & MongoDB in Hindi 2020

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

КОМЕНТАРІ • 80

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

    3 2 1 Boom..loved it..Best playlist ever made on youtube on backend

  • @letscodetogether9289
    @letscodetogether9289 3 роки тому +4

    Love You Thapa Bro.. For Providing Such a Quality Content.. for free...
    I am learning a lot from your Playlists and Courses...🤩

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

    for others: it is an Underrated channel

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

    This is the best video playlist for mongo db in Hindi

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

    Meaningful and useful tutorials..

  • @dhruvinkhant6000
    @dhruvinkhant6000 3 роки тому +4

    sir name se get karna ho to students/:id ki jagahh students/:name likhna rahega ?

  • @tusharkhandejod8327
    @tusharkhandejod8327 3 роки тому +3

    Thanks bro because of you understanding such difficult concepts becomes much more easy and simple

  • @algoman6589
    @algoman6589 2 роки тому +4

    UseFindAndModify is not supported in my case ....and my data is not updating....what should i do

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

    Nice video and thanks..luv u bro..

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

    love from Pakistan

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

    Fantastic video😄👏

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

    Awesome 👍🔥

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

    superb keep it up

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 роки тому +3

    *_KEEP IT UP_* 🔥✌🏻👌🏻

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

    A very helpful video. Thanks

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

    Great and Awesome work

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

    sir ek Complete project MEAN stack Project bana do(AngularJS,NodeJS,ExpressJS,Mongodb)

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

    Thank you sir...

  • @multiplewaya-qk7uq
    @multiplewaya-qk7uq 3 роки тому

    sir ye html and react se kaise bhejte hai request tab to/update route bnana padega?

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

    Sir await func node js mn ni used kr rhy tahy ap for aysnc
    Wahn sync func waiting k kam kr rhy tahy
    Yhn async, await

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

    Well done.Thank you sir

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

    love you thapa

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

    good job bro

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

    Maza a gaya bro

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

    plz make a video on crud with frontend control

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

    So helpful

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

    sir swagger documentation pe video bnao na

  • @multiplewaya-qk7uq
    @multiplewaya-qk7uq 3 роки тому

    put ka nhi btaya apne sir
    use .save() use ktrenge?

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

    Html form wali video kab aayegi, Mongodb atlas ke sath🥺🥺🥺🤒🤒

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

    thank you

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

    First like and comment

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

    Dai when are we going to connect with the front end ????

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

    Bro, please can you make a video on how to run this patch request using html.

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

    Nice video bro

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

    Sir make videos on three js and canon js as possible please 🙏🙏🙏

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

    First Please Give Reply

  • @mohitsaud2071
    @mohitsaud2071 3 роки тому +3

    // Exercise
    const name = req.params.name;
    console.log(name);
    // const updateStudents = await Student.findByIdAndUpdate(_id, req.body,{
    const updateStudents = await Student.findOneAndUpdate(name,req.body,{
    next: true
    });
    res.send(updateStudents);

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

    Kya aap orm pe kuch karnewale kya sir jee

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

    Sir wants a Complete MERN Project....

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

    Bhaiya i have an doubt
    While writing functions like findbyid() which is present only in mongoose but not in mongodb
    So for these functions should we use only that is defined in mongoose and not in mongodb?

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

    Bro mai apki react ki playlist daikh raha sath Sath node bhi karta jain?

  • @gabbarpatil3222
    @gabbarpatil3222 4 роки тому +2

    Find by name kese kare ..Any ans ?¿

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

      app.patch("/students/:name",async(req,res)=>{
      try{

      const StudentData = await Student.findOneAndUpdate( req.params.name,req.body,{new:true})
      res.status(201).send(StudentData)
      console.log(StudentData)
      }
      catch(e){
      res.status.apply(500).send(e)
      }

      }).
      I have noticed that if we have used already /students for update for patch request with the help of id, then
      we can't use /students again for another patch request . I mean use /student/:name or /stud/:name but not
      the same end point for the same type of request.
      This is my observation, I don't testify that.

    • @sunnyrajput-wp3pf
      @sunnyrajput-wp3pf Рік тому

      Bro it will update only single time name

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

    sir make video to insert more then one user data into mongodb

  • @numanazad1106
    @numanazad1106 4 роки тому +2

    Bro... What are these private videos in ur Playlist???

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

      They are private videos

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

    bro findbyidand delete work nahi kar raha

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

    How to update array of object if I take type : [string]

  • @dhainik.suthar
    @dhainik.suthar 4 роки тому +1

    bro express ke alava bi bahot kuch hain

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

    how to find by name i'm unable to do it please help

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

    if anyone getting error of no connection in console after writing this -useFindOneAndReplace:false
    then don't write this in mongo 6.0 version it will take those value automatically

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

    Hello Bro, Bro I need the code of Patch request for deposit money in my account and also update the balance of account after deposition

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

    Ok Ishtiaq Karachi

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

    Sir please react native ka tutorial banaeye

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

    vinod

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

    Bro can you please also reply to my query, i will be really thankful
    Although your videos are excellent

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

    First

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

    Kisine challenge pura kiya hoto batao please

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

    Uppdate the field by student name:
    app.patch("/student/:name", async function (req, res) {
    try {
    const name = req.params;
    console.log(name);
    const updateUser = await Student.findOneAndUpdate(
    name,
    { $set: req.body },
    {
    new: true,
    }
    );
    res.status(200).send(updateUser);
    } catch (e) {
    res.status(400).send(e);
    }
    });

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

    please send this code on ur github

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

    Bro why u talkin 2 languages

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

    Second

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

    Excercise: 👉
    const name = req.params.name
    Instead of FindByIdAndUpdate......
    use FindOneAndUpdate
    ✌✌

  • @prashantsingh-oy8go
    @prashantsingh-oy8go Рік тому

    //
    app.get("/students/:name", async(req, res)=>{
    try{
    const names = req.params;
    const studentData = await Student.findOne(names)
    //Above 2 lines can be replaced by below 1 line of code. Both codes
    //are equal
    // const studentData= await Student.find({name: new RegExp('^' + req.params.name + '$', "i")});
    console.log(studentData);
    if(!studentData){
    return res.status(404).send();
    }
    else{
    return res.send(studentData);
    }
    }catch(err){
    res.status(500).send(err);
    }
    })