Thank you so much sir for your splendor efforts , I learnt a lot from your videos. I have a humble request to you to create a full project on MERN stack like whatsapp or facebook. You are really awesome . Thanks
Very nice video, Aap please is series ko complete kriyega, Doesn't matter how much views and likes will come in this video's, Because it is significantly helping everyone who actuallty want to learn from here and get a good grasp in technical skills. Thanks for your all effort and hard work..!! Keep growing.
Thank you so much Vinod bhai. Naya naya laga hoo ek company mein, tumhari videos se kafi help milti hai. Please keep making videos. Your videos are so easy to understand and very informative as well. Thank you again. 🧡 from UP.
Thank you so much for your kind help please make a full project using MongoDB , Express ,React Js and Node js so that everything could be clear easily. Please make a full project. 🙏🙏
Hi @Thapa sir, I tried with the code , passing an incorrect id. But I am not able to get the 404 status code. Instead it jumping on the catch block resulting 500 status code.
Sir please make video on roadmap for full stack web development from your videos because you made many videos on javascroipt and more like html and css so when i watch i don't able to understand from where i have to start i started searching videos on javascript but you made many playlist from where i have to start please this is a request that please make road map on your videos so from where i have to start or if you give personal coaching so please sir let me know about this even i email but you didn't reply
Sir kindly tell us how does this arrow sign appear as it doesnt appear like this in mine. I mwan like which extension are you using for it in vscode. If someone else know kindly let me know
Sir awesome tutorial. Thankyou so much. But a complaint from you is i dropped you a message on Instagram regarding a query but you didn't respond it till time. Please do check our queries too will be very thankful. 🙏
solution to get the information of student with the help of name, pass the name in url app.get("/students/:name", async(req, res) => { // res.send("hello this is home page😍"); try { const name = req.params.name; const studentData = await Student.findOne({ name }); res.status(201).send(studentData); } catch (error) { res.status(404).send(error); } })
@@shashankbisht7204 comment out whole get method in which we were accessing the data by id and then run code alone it will run definetly.... Actually error is coming because the name we are providing in the url is taken as id because of this -> /:id and /:name.
for getting the indivisual student data using id can we use this code? app.get("/students", async(req,res)=>{ try{ const studentsData = await Student.findById("62ecfdea5e500989bd186b72"); res.status(201).send(studentsData); }catch(error){ res.status(404).send(error); } });
Guys, it's very important video, Handling GET Request in RESTFul API❤️ Hope you love the video 👍
Thank you so much sir for your splendor efforts , I learnt a lot from your videos. I have a humble request to you to create a full project on MERN stack like whatsapp or facebook. You are really awesome . Thanks
API hosting ke liye v ek video bana do
The funniest part is 3-2-1 boom guys and errors came 🤣
Very nice video,
Aap please is series ko complete kriyega,
Doesn't matter how much views and likes will come in this video's,
Because it is significantly helping everyone who actuallty want to learn from here and get a good grasp in technical skills.
Thanks for your all effort and hard work..!!
Keep growing.
This is the best backend playlist available on youtube 100%
the best tutorials in the world , even paid course can't be this good
Thank you so much Vinod bhai. Naya naya laga hoo ek company mein, tumhari videos se kafi help milti hai. Please keep making videos. Your videos are so easy to understand and very informative as well.
Thank you again.
🧡 from UP.
This is the best video on youtube for REST API that too in hindi. Sir your are doing great job for youth
Guys sir ki videos like Karo, taki aur logo bhi recommend ho, sir ki growth rukk se gyi hai
Thank you so much for your kind help please make a full project using MongoDB , Express ,React Js and Node js so that everything could be clear easily.
Please make a full project.
🙏🙏
no one can teach as u awesome love from pakistan
Giving recap was good in the start of the video... 👍
Appreciable work sir, as you said this video is certainly indeed helpful! Get learnt a lot from you❤
First 00:00
This playlist is so underrated bhai
tum bahut kaaam krte ho thapa bhai 😍♥
Really very nice video well explained
I have seen so much videos but your videos are very nice. 👍
Love to watch your videos
great lecture bhaiya ji thank u so much
And boom guys 💥
Watching this play list and its awesome
Great content and amazing teaching!! Hats off to you
Boom Guys 💻💻
thank you so much for this video.. lot of love
very helpfull lecture bhai thank u
Please make a full web application using node js , express js ,react js, mongodb so we can understand how to make complete web app using mern stack
Me too waiting for the same. Also, include redux in the same project if possible.
Awesome hai sir 🙏
awesome tutorial sir
speechless👌👌👌
Bhai database me
Name
College name
Location
Hai
Or isme se sirf sare names print karane ho like list chahiye to kya karna hoga
Awesome video . Thanks 🙏😊
Nice video sir
Nicely explained
Waiting for big project with user login and CRUD operation.
minor correction: in the if else statement it sould be studentData==" " instead of (!studentData)
Thanks bro, even I was getting same problem
@@nishantmoolya 😊
But if he uses findOne() then "!" this logic is correct
@@nishantmoolya Okay did you try that. why will that work actually 🤔
min property does not work as minlength which is defined only for string
so pls provide a property like minlength for NUmbers also
Hi @Thapa sir, I tried with the code , passing an incorrect id. But I am not able to get the 404 status code. Instead it jumping on the catch block resulting 500 status code.
I see an error when I access individual student data 'Cannot set headers after they are sent to the client'
Thapa technical, please create one series for nodejs with mysql.
I'm not getting the data in pretty format after entering that url
What can I do for that?
install json formatter extension in chrome
Sir please make video on roadmap for full stack web development from your videos
because you made many videos on javascroipt and more like html and css
so when i watch i don't able to understand from where i have to start
i started searching videos on javascript but you made many playlist from where i have to start
please this is a request that please make road map on your videos so from where i have to start
or if you give personal coaching so please sir let me know about this even i email but you didn't reply
i don't need Dil sir
really need guidance
Hey Guys,
how to make get request using name. Its not happening like I did in id
did you figure it out ?
Thank you so much ☺️
Sir kindly tell us how does this arrow sign appear as it doesnt appear like this in mine. I mwan like which extension are you using for it in vscode. If someone else know kindly let me know
you just need to press equals symbol then greater than symbol =>
Good!!
API hosting par v ek video bana do
Iss k bad....jwt authentication v sikhao sir
Good👍
Thank you 🙏
best video
Please start shopping website using MERN plzzzz
When you start shopping website playlist
bhaiya host kese karte hai api ko??
How can we use mongodb data in our hmtl file?
ruko zara..... sabar karo
Can I fetch the API using Fetch.then?
Good
with name its giving an error
name se kaise data retrieve kare koi batade yr
pata chala kya
app.get("/studentsbyname/:name",async (req,res)=>{
try{
const name=req.params.name;
let studentData=await Student.find({name});
res.status(200).send(studentData);
}
catch(err)
{
res.status(404).send(err);
}
})
how to find by users name ?we understand find by id
Thapa bro, plz iss video ka code explain kar do ya at least iss par ak video bana do
ua-cam.com/video/g-FpDQ8Eqw8/v-deo.html
Plz reply
what is __v:0? it's coming always
3 - 2 - 1 and boom guys... Error aa gaya 😂😂😂😂
✌
boom guys
Plz if any one has done searching via name given by /students/:name then plz suggest
yes.. I tried
//find by name
app.get('/students/:name', async(req,res) => {
try{
// console.log(req.params.name);
let studName = req.params.name;
let studentData = await Student.find({name:studName});
// console.log(studentData)
if(!studentData){
res.status(404).send();
}
res.status(200).send(studentData);
}catch(err){
res.status(404).send(err);
}
})
@@poojakasar4572 Thankyou so much
@@jivrajupadhyay887 its not working
@@poojakasar4572 tum to khud thapa ho ! bro 🎃
Bro please use it with react
Bom video
How to secure rest api?????????
india visual data
app.get("/api/:name", async(req, res) =>{
try{
const _id = req.params.name
const studentData= await Student.find({name: new RegExp('^' + req.params.name + '$', "i")});
if(!userData){
res.status(404).send();
}else{
res.status(201).send(studentData);
}
}catch(e) {res.status(401).send(e); };
});
Thanks Man
Thanks bro
Sir awesome tutorial.
Thankyou so much.
But a complaint from you is i dropped you a message on Instagram regarding a query but you didn't respond it till time.
Please do check our queries too will be very thankful. 🙏
solution to get the information of student with the help of name, pass the name in url
app.get("/students/:name", async(req, res) => {
// res.send("hello this is home page😍");
try {
const name = req.params.name;
const studentData = await Student.findOne({ name });
res.status(201).send(studentData);
} catch (error) {
res.status(404).send(error);
}
})
bro error ara hai
@@shashankbisht7204 comment out whole get method in which we were accessing the data by id and then run code alone it will run definetly.... Actually error is coming because the name we are providing in the url is taken as id because of this -> /:id and /:name.
@@thenextgyani6040 bro code me id ka hai or ab name ka bhi bhut name thbhi work krta hai jab hum id ko comment out krr dete hai
???
@@thenextgyani6040 Hello, bro then what is the solution how to run both end points simultaneously in the same code.
@@thenextgyani6040 how can we resolve that ?
If I am providing name then route /:name should run and when I am providing id then route /:id should run
for getting the indivisual student data using id
can we use this code?
app.get("/students", async(req,res)=>{
try{
const studentsData = await Student.findById("62ecfdea5e500989bd186b72");
res.status(201).send(studentsData);
}catch(error){
res.status(404).send(error);
}
});