Mongoose Populate | Mongoose reference and populate | MongoDB in Hindi #12

  Рет қаралды 34,451

Coder Dost

Coder Dost

Күн бұрын

Пікірлер: 28
@ziyaurrahmankhan8148
@ziyaurrahmankhan8148 2 жыл бұрын
Your explanations really very clear and through the point All your mongodb playlist is osm
@askanalysis9872
@askanalysis9872 Жыл бұрын
Struggling with this for 3 days. Finally found this. Thank you so so much
@ziyaurrahmankhan8148
@ziyaurrahmankhan8148 2 жыл бұрын
This video is very helpful for understanding the concept of schema and populate methods
@akashddeepchitransh4537
@akashddeepchitransh4537 Жыл бұрын
Very underrated channel...
@soumyaswaroopsootar
@soumyaswaroopsootar Жыл бұрын
Very Clear Explaination Of Populate on MongoDB
@Solo_playz
@Solo_playz 2 жыл бұрын
My God damn bro, I really couldn't understand this concept for the past couple of days, but now I have a clear understanding of it. Thank you very much. Really appreciable 👏
@coderdost
@coderdost 2 жыл бұрын
Thanks. Will try to make more useful videos in future
@poojagadara1189
@poojagadara1189 2 жыл бұрын
very well explained and love your sweet voice
@puravmehta9588
@puravmehta9588 2 жыл бұрын
Nice explanation.....Keep it up 🔥🔥❤‍🔥!!
@deadlock_33
@deadlock_33 3 жыл бұрын
Well explained 🤜🤛
@nandininila
@nandininila Жыл бұрын
So helpful to me. Thanks
@52nevil36
@52nevil36 3 жыл бұрын
great video thanks for helping
@dipendangol5387
@dipendangol5387 2 жыл бұрын
Thank you brooo 😄
@sheyushai937
@sheyushai937 Жыл бұрын
very helpful video bcz of I am find lots of video on mongodb but I can't find on mongoose and also this type advanced query so thank you so much
@coderdost
@coderdost Жыл бұрын
Great
@faaizalam235
@faaizalam235 2 жыл бұрын
Sir is it necessary to give id, if I have already object and want to save in schema instead of I'd I can give entire object,to it, then it will find it self I'd,
@coderdost
@coderdost 2 жыл бұрын
Yes, you can do that also. and it is a perfect solution in MongoDB. You need to understand, when it is good to have ID and when the entire object : 1. Complete Object is suitable -> If the property is unique for that parent document and changes very less. Example - if data is like your home address object. no need to save its ID - save the complete object. as that object will always be your personal address. and if it changes only needs to be changed in your document. 2. ID is good -> If the property is shared between many objects and keeps changing. For example - if that data object is your "Favorite Sports player's record" It will be better to store only ID. As that player can be the favorite of 100 other users. Also, the record will keep changing - you can't update the player record for all users in DB every time. So have the player in a separate document and then update it once, it will be changed for all users (as they are linked by ID).
@faaizalam235
@faaizalam235 2 жыл бұрын
@@coderdost thank you so much for giving me clear details 😍😍❤️
@ADayWithDev
@ADayWithDev Жыл бұрын
if any student is trying to fill city but before he have to go through state country and then city then how we will create this type of nested data inside it ?
@AbhishekSavaliya-bf2fw
@AbhishekSavaliya-bf2fw Жыл бұрын
I not Want to Use ObjectId I want to use my CustomeId to aggregate ?
@sunilmaurya6594
@sunilmaurya6594 Жыл бұрын
you can explain there multiple levels population as well, i think than this topic will be complete
@ajayjangid5968
@ajayjangid5968 2 жыл бұрын
Hello sir nice video. But could you tell me how to apply projections on populated field ?
@coderdost
@coderdost 2 жыл бұрын
I think it's answered nicely here : stackoverflow.com/questions/28414334/is-there-a-way-to-populate-with-a-projection-in-mongoose
@surajghodke1033
@surajghodke1033 2 жыл бұрын
Any idea how to set limit or pagination on populated array?
@coderdost
@coderdost 2 жыл бұрын
mongoosejs.com/docs/populate.html#limit-vs-perDocumentLimit
@learnprogramming746
@learnprogramming746 2 жыл бұрын
Can you please explain how to populate multiple keys?
@coderdost
@coderdost 2 жыл бұрын
use in same way and chain it : populate('names').populate('subjects') stackoverflow.com/questions/12821596/multiple-populates-mongoosejs
@ajaymishra1511
@ajaymishra1511 Жыл бұрын
How we will remove students from class
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 443 М.
Find vs FindOne in MongoDB in Hindi
10:35
Engineering Digest
Рет қаралды 52 М.
Data modelling for backend with mongoose
56:11
Chai aur Code
Рет қаралды 186 М.
Connecting NodeJS with MongoDB | Mongoose + Express
19:18
Piyush Garg
Рет қаралды 162 М.
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 107 М.
React JS interview 2023 Live Coding Round (Mock)
18:33
Coder Dost
Рет қаралды 303 М.