No video

Mongoose schema in node js | CRUD operation in node js with try catch statement

  Рет қаралды 38,213

Hello World

Hello World

Күн бұрын

Пікірлер: 336
@akshayshrivastava6057
@akshayshrivastava6057 5 ай бұрын
For most of the user's like me questioning where does that collection name "people" came .let's have some explanation.(say thanks as I have done research for you).😁😁. In Mongoose, if you create a model without explicitly specifying a collection name, Mongoose will pluralize the name of the model to determine the collection name. In your case, since your model is named "Person", Mongoose will pluralize it to "people" and use that as the collection name by default. This is a common convention in MongoDB and Mongoose for naming collections. If you want to explicitly specify a different collection name, you can do so by passing the desired collection name as the third argument when creating the model using mongoose.model(). For example: "const Person = mongoose.model('Person', personSchema, 'my_custom_collection_name');"
@2719yash
@2719yash 3 ай бұрын
Bro can you plz. share notes
@messi69goat
@messi69goat 2 ай бұрын
anyone help in my terminal it only shows connected to mongo server it doesnt shows disconnection although i stop the mongo server
@akshayshrivastava6057
@akshayshrivastava6057 2 ай бұрын
@@messi69goat hi please share more info on it
@messi69goat
@messi69goat 2 ай бұрын
@@akshayshrivastava6057 in the video when we start mongo server the terminal print saying the server is connected and when we stop server it will say disconnected but in my case it doesn't says it is disconnected what should I do although it says it's connected
@rishabhsingh1492
@rishabhsingh1492 2 ай бұрын
Thanks bhai
@AJ-wf3wp
@AJ-wf3wp 7 ай бұрын
guys plz keep liking the video....for his motivation
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Thanks for your support
@Kabir-777
@Kabir-777 7 ай бұрын
A perfect course for node.js and backend as well. Much more then a paid course. Please don't leave it incomplete 🥰😘
@tricksforsolving2804
@tricksforsolving2804 7 ай бұрын
To bhi Tera sb sahi se run hora he ,cmd me kuch error nahi Ara he??
@Kabir-777
@Kabir-777 7 ай бұрын
@@tricksforsolving2804 han bhai sab sahi run ho raha he
@tricksforsolving2804
@tricksforsolving2804 7 ай бұрын
@@Kabir-777 sahi he fir
@amanisdreaming3914
@amanisdreaming3914 5 ай бұрын
nodeman ka error aa rha hain mera toh
@abhishektyagi5941
@abhishektyagi5941 7 ай бұрын
I'm not the person who comments on any of the videos, but the way you teach is just amazing. I am grateful that I found your channel when I started learning the backend. Thanks a lot, already subscribed to your channel.
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
I am soo happy for such positive vibes Keep learning and pls share as much as you can to support our channel
@VaishaliSharma374
@VaishaliSharma374 2 ай бұрын
Hey can you please help me out, While downloading mongoDB, a file named 'mongo.exe' has to be downloaded, which when i download it got downloaded with the name 'mongo' only. When I'm trying to connect mongoDB server with node.js server, it is not gteting connected. Is this issue came coz of not downloding 'mongo.exe' file properly ?
@user-rb2di2hu4p
@user-rb2di2hu4p 2 ай бұрын
hats off, I tried so many courses to learn back end this is the bestest and most easilyy understandable. I pray god gives u so much success and so many subscribers u really deserve it. I will be sitting for placement in august and this videos make me feel very hopeful. thank you
@rishikagoyal8043
@rishikagoyal8043 4 ай бұрын
Top notch content. I wish you get a millions of subscribers this year🤞
@ShivamBhawel-zq1fg
@ShivamBhawel-zq1fg 5 ай бұрын
bohot sahi study krwate he bhaiya.....Thank u so much.... .
@Fun044
@Fun044 Ай бұрын
Thank you very much Sir for making such lecture deep explaination along with notes and Error handling better than many paid courses hats of you Sir dil se Shhukriya 🤍
@HelloWorldbyprince
@HelloWorldbyprince Ай бұрын
Bass bhai share kardo jitna kar sakte ho
@Gaming_pranjul
@Gaming_pranjul 3 ай бұрын
For windows, mongodb is disconnected using db.adminCommand({shutdown: 1, force: true}) And reconnected using by running "services.msc" on cmd and start mongodb server.
@2719yash
@2719yash 3 ай бұрын
Bro can you plz. share notes
@aritrakhatua8210
@aritrakhatua8210 7 ай бұрын
Definitely better bootcamp than a so called Udemy Course
@AkashSharmaSDE
@AkashSharmaSDE 4 ай бұрын
Maza aagya bhaiya pdhke aapse concepts clear hogye
@NikhilChoudhary-hi6fo
@NikhilChoudhary-hi6fo 4 ай бұрын
best of best bhai ...Thanku so much..... Truly Helpfull
@HelloWorldbyprince
@HelloWorldbyprince 4 ай бұрын
So nice of you
@shashankkhare-zw1ie
@shashankkhare-zw1ie 3 ай бұрын
One of the best node.js tutorial. Great explaination
@2719yash
@2719yash 3 ай бұрын
Bro can you plz. share notes
@MAYANKSINGH-mf2ll
@MAYANKSINGH-mf2ll 4 ай бұрын
Thanks Bhaiya for the Amazing Course and hardwork you put in this course 😍 Literally speaking ,this course has boost my confindence
@codin7367
@codin7367 4 ай бұрын
prince bro the way you teach is fabulous and makes complex topics digestible... I am currently looking for job as a fresher but people wants only experienced others are not responding😢
@sandeepkumarg1889
@sandeepkumarg1889 7 ай бұрын
Great lecture sir🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Thanks
@vikash.pandey1550
@vikash.pandey1550 Ай бұрын
thanks bhaiya you deserve a million followers
@zohaircyber
@zohaircyber 4 ай бұрын
Dear sir, I am Zohair Faruqi from Karachi, Pakistan I would like to say that your course is very helpful for those whose beginners. Most of the students are overseas , kindly to give free link for your foreigner students , they need notes too , for follow your course. Because foreigners have not any payment method. Kindly understand most of the students problems. Thanks Zohair Faruqi
@anonymous090
@anonymous090 6 ай бұрын
homework krte hai bhaiya... these lectures are amazing
@062nayemurrahman8
@062nayemurrahman8 7 ай бұрын
You deserve more subscribers brother. Thanks for your service❤
@vedbhanushali608
@vedbhanushali608 7 ай бұрын
was waiting for this 👍🏻
@HelloWorldbyprince
@HelloWorldbyprince 6 ай бұрын
Hope you enjoyed it!
@anandsinha2289
@anandsinha2289 6 ай бұрын
maja a gya bhaiya inta acha padhane ke liye dil se sukriya 🚀🚀🥰😘
@HelloWorldbyprince
@HelloWorldbyprince 6 ай бұрын
Thanks a lot keep sharing my channel
@user-fh2wy2zv2i
@user-fh2wy2zv2i 7 ай бұрын
successfully done 🙂
@WebartMorning
@WebartMorning Ай бұрын
thank you , this is very simple to undersatnd
@parthtakale4308
@parthtakale4308 3 ай бұрын
sir can you please provide the notes
@Vanshit_Patel
@Vanshit_Patel 3 ай бұрын
Ek number bhai easy to learn and understand aapne bataya he 👍
@2719yash
@2719yash 3 ай бұрын
Bro can you plz. share notes
@minecraftcookie2929
@minecraftcookie2929 3 ай бұрын
Thanks so much for this amazing course
@yashparashar6781
@yashparashar6781 5 ай бұрын
Thank you for the course😇
@nehathakur40
@nehathakur40 6 ай бұрын
Best bootcamp for beginners
@shubhamsingh-gb5zh
@shubhamsingh-gb5zh 3 күн бұрын
MongoDB assigns a unique _id for each document.
@moinali9874
@moinali9874 2 ай бұрын
Bhai sidha atlas ya compas se bhi to link leke database se connect kar sakte h na i am beginner isliye puch ra hu
@lohitkumarpatra6906
@lohitkumarpatra6906 7 ай бұрын
well explain bhaiya,homework done...
@user-uq8yd4lj7t
@user-uq8yd4lj7t 4 ай бұрын
best explaination ever
@mukulkumar5133
@mukulkumar5133 7 ай бұрын
good same like 3L course
@theTrendy23
@theTrendy23 7 ай бұрын
Thanks bhai for world best node course
@aayushsingh6125
@aayushsingh6125 20 күн бұрын
do you have notes ?
@yashu1703
@yashu1703 7 ай бұрын
Best video ❤
@Mohitkumar70554
@Mohitkumar70554 26 күн бұрын
Thank you sir
@HelloWorldbyprince
@HelloWorldbyprince 26 күн бұрын
All the best
@minecraftcookie2929
@minecraftcookie2929 3 ай бұрын
Wow when i am able to do the first entry in the db i am so happy
@2719yash
@2719yash 3 ай бұрын
Bro can you plz. share notes
@minecraftcookie2929
@minecraftcookie2929 3 ай бұрын
@@2719yash i dont have notes. i dont make 'em i do practical hands on and if i feel something is really important i comment it out in my code
@bhushan321
@bhushan321 7 ай бұрын
Good explanation 👏 👍
@user-th4uz6vg1d
@user-th4uz6vg1d 7 ай бұрын
Thank you bhaiya 💙🎉
@madhurchaturvedi5551
@madhurchaturvedi5551 3 ай бұрын
Sir react ki series please
@vibha3031
@vibha3031 3 ай бұрын
maza aagya bhaiya !! great lecture
@anonymous090
@anonymous090 6 ай бұрын
Thank you bhaiya... learned a lot
@junaiid0104
@junaiid0104 Ай бұрын
crazy playlist sir !!!!!
@sanketrinayat9736
@sanketrinayat9736 15 күн бұрын
Guys, Hats-off to this course. Can anyone help me with the notes link, it will be very helpful. I am not able to get they way to access it.
@_hulk748
@_hulk748 2 ай бұрын
Wonderful Video sir🙏🙇‍♂✨💖
@bhaktisharma9681
@bhaktisharma9681 Ай бұрын
thanks brother good videos
@haris7247
@haris7247 5 ай бұрын
my server.js file is throwing errors and not getting connected to mongoDB @11:42. On terminal it shows server is listening on port 3000 and then throws an error and nodemon gets crashed.
@coder.gremogt
@coder.gremogt 5 ай бұрын
whats ERROR ?
@amanisdreaming3914
@amanisdreaming3914 5 ай бұрын
thik hua?
@roshanraturi6450
@roshanraturi6450 4 ай бұрын
mera bhi yahi bta rha h same
@arijitsinghmusic7508
@arijitsinghmusic7508 3 ай бұрын
This error typically occurs when you're using an outdated or incorrect option name. The correct option name is useUnifiedTopology, not useunifiedtoplogy.
@Kajalraghav-m8v
@Kajalraghav-m8v 4 ай бұрын
Really useful of me ❤
@tarifahmed4956
@tarifahmed4956 4 ай бұрын
thank you so much bhaiya
@HelloWorldbyprince
@HelloWorldbyprince 4 ай бұрын
Always welcome
@AliinNITW
@AliinNITW 7 ай бұрын
Can i use .then() and .catch() to handle asynchronous functions . what should i prefer async await or .then().catch()
@ManojDas-uf1zk
@ManojDas-uf1zk 4 ай бұрын
you should prefer async await beacuse of code readability and less code syntax
@amarjoshi8583
@amarjoshi8583 2 ай бұрын
you can use both but modern mern developers use async/await as per industry standards.
@shubhamsingh-gb5zh
@shubhamsingh-gb5zh 3 күн бұрын
Body parser->parsed data ko req.body me store karta hai
@user-br3vb5mc6q
@user-br3vb5mc6q Ай бұрын
Thankyou sir
@learn_Coding
@learn_Coding 7 ай бұрын
Thank you sir ji You are great
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
So nice of you
@The_Developer_
@The_Developer_ 5 ай бұрын
best for beginner
@batmandarknight5830
@batmandarknight5830 Ай бұрын
thanku bhai
@mehedihasannnnn
@mehedihasannnnn 7 ай бұрын
thank you vaiya for such a great bakcend bootcamp !!!! maja a gya
@abhishekpundir5941
@abhishekpundir5941 7 ай бұрын
Keep going 💪❤
@HelloWorldbyprince
@HelloWorldbyprince 6 ай бұрын
Thanks 🔥
@durgfestivalvibes
@durgfestivalvibes Ай бұрын
badhiya!!!!!
@roteshkumar8480
@roteshkumar8480 Ай бұрын
#reallearning 🔥
@Uvistix
@Uvistix 3 ай бұрын
Your the best🌟🌟🌟🌟🌟
@amangupta1970
@amangupta1970 22 күн бұрын
Hi, what do you use for autocompleting what you are writing. for example: when you type "con" it automatically shows you "console.log(" and then you just press tab i think to complete it.
@AYUSHKUMAR-xj4wc
@AYUSHKUMAR-xj4wc 3 ай бұрын
Amazing!!!!!!!!!!!!!!!!!!!!!!!!!!
@Chiragsanikam.
@Chiragsanikam. 5 ай бұрын
Thank you so much
@utpaltripathi9577
@utpaltripathi9577 6 ай бұрын
Simplified explanation
@props.Expert
@props.Expert 26 күн бұрын
Keep It Up Good Work ❤
@SilentGaming-satisfaction
@SilentGaming-satisfaction Ай бұрын
Bhaiya Love from Nepal❤ Your teaching style is awesome Bhaiya I have one doubt In GET method, menu Ka port 3001 mey hogaya but 3000 mey he menu +person Ka nahe hora hey why?
@nitink8148
@nitink8148 2 ай бұрын
Excellent!!
@HelloWorldbyprince
@HelloWorldbyprince 2 ай бұрын
Many thanks!
@hitheshpodalakuntakottige7939
@hitheshpodalakuntakottige7939 6 ай бұрын
best content
@user-tb5ew5sq5g
@user-tb5ew5sq5g 2 ай бұрын
thanks
@HelloWorldbyprince
@HelloWorldbyprince 2 ай бұрын
Good luck!
@JigsawXop
@JigsawXop 7 ай бұрын
Yes sir ❤
@sakshirathod4158
@sakshirathod4158 4 ай бұрын
Please create frontend(react.js) playlist it would be very helpful for us.
@user-fh2wy2zv2i
@user-fh2wy2zv2i 7 ай бұрын
Present Sir #mongoose_schema #CRUD_operation #nodejs♥
@Manoj_Jadhav.12
@Manoj_Jadhav.12 7 ай бұрын
Maza aagaya prince bhai
@HelloWorldbyprince
@HelloWorldbyprince 6 ай бұрын
Thanks yaar Please share this channel
@vikeshkumarmahto16
@vikeshkumarmahto16 5 ай бұрын
day 5 completed
@sharanshjha2407
@sharanshjha2407 7 ай бұрын
Thanks alot bro
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Always welcome
@rajyavardhanpmsv7419
@rajyavardhanpmsv7419 3 күн бұрын
Can anyone say me when data was saved , why was it getting saved in peoples database?
@KartikeyBhardwaj-bd5sg
@KartikeyBhardwaj-bd5sg 11 күн бұрын
Bhaiya crud wale chapter mai window mai command prompt par mongodb server start kaise kare problem ho rahi hai
@Pallavi25010
@Pallavi25010 2 ай бұрын
Jo aapne postman me person data likha tha / laga ke jisme name and other details likhi thi wo kaha pe bana ke rakha tha ??.uska koi folder ni dikha ?jaise idli sambhar wala data to banaya tha ek folder me par ye wala ni dikha kaha banaya?
@Ffdsdjlbdsrhb
@Ffdsdjlbdsrhb 7 ай бұрын
@AJ-wf3wp
@AJ-wf3wp 7 ай бұрын
nicee.....very good
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Many many thanks
@Azka-vc6hd
@Azka-vc6hd 3 ай бұрын
excellence
@muhammadshoaib4837
@muhammadshoaib4837 7 ай бұрын
Thanks sir g
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Welcome
@SumanSahu-pl9zp
@SumanSahu-pl9zp Ай бұрын
Sir connection between mongodb and vsc note connect
@thefourhourtalk
@thefourhourtalk 23 күн бұрын
no update showing on postman app :(
@HelloWorldbyprince
@HelloWorldbyprince 23 күн бұрын
what's the error ?
@thefourhourtalk
@thefourhourtalk 23 күн бұрын
@@HelloWorldbyprince resolved sir .. just letting you know that Ive started watching your linked list series as well ... there's no one else like you in teaching you know the exact pin point ki kaha hame dikkat ayegi and vo aane see pehle hi you clear it love you bhaiya thanks for this node ka series ..... will hopefully complete this till midnight love you bhaiya !!
@khushiramginnare4961
@khushiramginnare4961 7 ай бұрын
Thanks bro
@HelloWorldbyprince
@HelloWorldbyprince 6 ай бұрын
Any time
@madhavsolanki1037
@madhavsolanki1037 25 күн бұрын
Completed the Home Work task const MenuItem = require('./models/MenuItem') // APIS for Menu Items app.post('/menu', async (req, res) =>{ try { const data = req.body const newMenuItem = new MenuItem(data) const response = await newMenuItem.save() console.log('data saved'); res.status(200).json(response) } catch (error) { console.log(error); res.status(500).json({error:'Internal Server error'}) } }) app.get('/menu', async (req, res) => { try { const data = await MenuItem.find() console.log('data feteched'); res.status(200).json(data) } catch (error) { console.log('Error occured', error); res.status(500).json({error:'Internal Server error'}) } })
@EntertainmentHub0045
@EntertainmentHub0045 4 ай бұрын
great video
@HelloWorldbyprince
@HelloWorldbyprince 4 ай бұрын
Thanks!
@zerohell4398
@zerohell4398 3 ай бұрын
Sir AWS par lacture bana dijiyega ❤
@k-CE-OmkarPathak
@k-CE-OmkarPathak Ай бұрын
Done
@ParvinderSingh013
@ParvinderSingh013 7 ай бұрын
very nice video
@HelloWorldbyprince
@HelloWorldbyprince 7 ай бұрын
Thanks
@new_cse_28_mdanaskhan50
@new_cse_28_mdanaskhan50 6 ай бұрын
Question:- Bhaiya What to do next after this course??
@mohitkansal7642
@mohitkansal7642 5 ай бұрын
At 12:42 is it command prompt?. My community server is not starting.
@saurabhtiwari9653
@saurabhtiwari9653 3 ай бұрын
bhaiya I think in new verson of node useNewUrlParser is not necessary
@CinemaUnreveal
@CinemaUnreveal Ай бұрын
can u explain your student in full detail ? how to run mongo server in windows ?
@tricksforsolving2804
@tricksforsolving2804 7 ай бұрын
Mera mongodb se connect nahi hora he server
@chetanbharti7869
@chetanbharti7869 7 ай бұрын
Error kya arah h ?
@tricksforsolving2804
@tricksforsolving2804 7 ай бұрын
@@chetanbharti7869 node js se connect hora he but mongoDB ke time selection error esa kuch Ara tha ,but after 3 hrs of time I find the solution
@apoorvvarshney5711
@apoorvvarshney5711 7 ай бұрын
hey can you please tell the resource i also face the same error but can't find the solution@@tricksforsolving2804
@CTrickC
@CTrickC 6 ай бұрын
Mera bhi nhi ho rha hai
@apoorvvarshney5711
@apoorvvarshney5711 6 ай бұрын
@@CTrickC ho gya hai
@factsmotivation7728
@factsmotivation7728 3 ай бұрын
how to disconnect the mongodb in window any body answer please
@moinali9874
@moinali9874 Ай бұрын
what command we will have to run to start server of mongodb in windows
@MuhammadFasih327
@MuhammadFasih327 Ай бұрын
mongod on command prompt then open another command prompt without closing first one and type mongosh make sure u have installed mongosh separately and extracted it with the server folder in mongod folder and created a data folder separately in the localdisk C and inside data create subfolder db.Hope it will resolve your issue
@moinali9874
@moinali9874 Ай бұрын
@@MuhammadFasih327 thanks bhai I will try this
@PihulLalotra
@PihulLalotra 3 ай бұрын
Can you tell the extensions you are using in VsCode
@mohitkansal7642
@mohitkansal7642 5 ай бұрын
Mongodb server is not connecting ?
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 105 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 33 МЛН
6 Step guide to master api handling
14:42
Chai aur Code
Рет қаралды 62 М.
Node JS Interview Questions 🔥 NodeJS tutorial for beginners
7:20
2.5 Years Experienced Best JavaScript Interview
2:03:06
Anurag Singh ProCodrr
Рет қаралды 224 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 105 МЛН