Connecting NodeJS with MongoDB | Mongoose + Express

preview_player
Показать описание
Hey Everyone, In this video, we are going to connect our Node application to MongoDB using mongoose.

My Gears

Disclaimer: All the links above are affiliate links.

Social Links

Video Titles
What is MongoDB?
How to Install MongoDB?
Getting Started with MongoDB
Mongoose and MongoDB
How to connect nodejs to MongoDB
what is mongoose

Tags
#nodejs #javascript #expressjs #mongodb #mernstack #developer #api #https #server #javascriptinhindi #webdevelopment #webapp #realtimeapp #serverside #nonblockingio #tech
Рекомендации по теме
Комментарии
Автор

Please try to make/create separate code for each ep if possible. Bcz it is difficult to connect to your video in-btn. Means I'm watching this vdo directly of your series and it is difficult to connect with your explanation bcz you are doing changes in your code which is written in previous videos.

No doubt Ur explanation is very good and I'm very excited to learn from U.

亗Pawar
Автор

Literally, your method of teaching is so good and excellent. No doubt in saying that you are better than codewithharry and many others you tubers.
Hats off to your hard work and big fan of your teaching style :)

HussnainAhmad-be
Автор

Man i love the way of your teaching. Paid course mein itna detail mein koyi nahi samjhaya ❤❤❤❤❤

zooheb
Автор

so much new things i am learning easily from these videos✨✨

RohitKumar-dygc
Автор

schema is the blueprint(or structure) of collection->it is like class in oop
but model provide methords to actually intract with database->it it like object in oop as the instance of schema

SuplavPandey
Автор

Amazing series.. Sir you make everything so simple.. Thanks a lot🙏🙏

bhawnachowdhary
Автор

Bohoti tagri explanation ha bhaiya maja a gaya 🔥🔥

iamakashkumarram
Автор

Bhaiya e series ke bad ReactJS ka advance topic bhi cover karwana like Data Handling, Reconciliation, Lazy Loading, Portals, Theming, Patterns, Anti-Patterns, Testing esab topic please cover karwaiyega.

iamakashkumarram
Автор

yes, ur tutorial solve my problems...thanks a lot boss

CricketHighlights-ntnn
Автор

Thanks you, with that video is easy learning mongo and node express

jorrgecvx
Автор

appreciated 💯... sir
Also make tutorial on nodejs framework(nestJs).

sahil-jzw
Автор

Sir will you upload a complete course of mern stack?

lovelymusic
Автор

thanks a lot piyush sir great teacher and mentor

sumirandahal
Автор

Hey...Piyush will make some videos over "MongoDB aggregation pipeline" topic 😃😃😃😃👋👋👋👋

hriksinha
Автор

Hi Piyush, we really appreciate the efforts you've put into creating these awesome tutorials. In this particular video, it would be helpful if you've also shared solution to two problems:

1) POST request with duplicate email crashes the server, how do we handle error here?
Since we've defined Mongoose schema with email: {required: true}, it throws an error and the server gets crashed if we put in the same/duplicate email id again -> as shown in your video as well. But what is the solution for this?

Also,

2) We are using MongoDB id creation value to find the database items. If we create our own custom id, ho do we fetch the data then? I am sure findById, findByIdandUpdate, findByIdandDelete methods won't work in this scenario. Using the Mongoose created ID is too long and not feasible to use.

sureshbhatt
Автор

sir i am writing these code in the mt pc but here you have written
const result = await User.create({
})

but await is giving a error but you run successfully please explain

kapadiyajay
Автор

Thank you so much. You have explained very well!😊

poojaganvir
Автор

Hi Piyush please make a project based on this series

awesomeguy
Автор

Thank you very much, keep them coming ❤

Ari-pqdb
Автор

I am not able to install mongodb and mongosh on my ubuntu 22.10. I searched a lot but there were no mention of ubuntu 22.10 or 22.04lts on even offical docs.

So i am using atlas and compass.
Are you going to teach these ?

warrior_pk