Hey gang, in this MongoDB tutorial for beginners, I’ll be showing you how we can store relational data, by nesting documents.
—– COURSE LINKS:
+ Repo –
+ Atom editor –
+ Download GIT –
+ CMDER –
+ MongoDB –
+ Robomongo –
JS Playlist –
NODEJS Playlist –
ASYNC JS Playlist –
———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress, Node.js & more on the channel homepage…
SUBSCRIBE TO CHANNEL –
========== PSD to WordPress Playlist ==========
============ Node.js for Beginners Playlist =============
============== The Net Ninja =====================
For more front-end development tutorials & to black-belt your coding skills, head over to – or
================== Social Links ==================
Twitter – @TheNetNinja –
Nguồn: https://vesovietlott.com
Xem thêm bài viết khác: https://vesovietlott.com/giai-tri
Xem thêm Bài Viết:
- TOP 5 MODS QUE QUEREMOS NOS CONSOLES! ARK SURVIVAL EVOLVED
- Con Nhà Người Ta (Trúc Xinh Parody) I Nhạc Chế I Kem Xôi Parody
- Mộc Quế Anh Tập 27 – phan 1/3 VTV2 – MOC QUE ANH TAP 27 – phan 1/3 VTV2
- Hoa Mộc Lan Truyền Kỳ – Tập 57 End Lồng Tiếng | Phim Võ Thuật Cổ Trang Trung Quốc 2019
- Mẫu Zippo vỏ dày trắng bóng mộc đáy 2020
Wouldn't it be more correct to store not the books on the side of the author but the authors of each book on the side of a book?
One author might have dozens of books written, one book has for the greater part a single author
it's really better if you code routers to execute them
He explains it very beautifully and the revision at the end of every video helps to grasp the whole concept.
How can i get all documents with books array are sorted in?
which schema shall we insert first ? author or book ?
mongoose tutorial
Solved my biggest problem.
Dude you saved my life!!!!
Never thought it could be this easy and never thought i could a find youtuber to explain it so well! Thank you!
Sir , I am working on a webapp where app require a company signup, i want to create a separate db for each company. i am using mongoose for mongodb .. since mongodb doesn't support query to create Database. So what should i do so that i can create my DB dynamically in a node js application
Please help me ..as i am new in this field
what if I store only id's
This is a good example if you know the book will never share an Author. In that case, this wouldn't be the best schema because if 100 authors each co-authored a book (all 100 authors have the same book in their record), and you realize you need to update/change something about the book, you can't just edit the book once. You have to iterate over each author and update the book. TL:DR; Just because something is relational, doesn't mean you always follow this schema
What keyboard do you use? it sounds amazing!!!
Hi The net ninja, is this model OK if I want to search book by genure? Pls suggest me how to search
This works for one-to-one or one-to-many relationships. What about many-to-many relationships? Say a book has two authors? In that case I'd have to insert the book data twice (once against each author).
But if we have another document that also uses books, what can we do? Replicate the data?
@The Net Ninja
If we have many transactions for Books, is it better to separate Books as a different collection and set relation with object_id?
Please, Can I have your twitter handle
Net Ninja, you are the beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssstttt
what i dont get is how you would easily say a book that has more than one author. Would you have to make a new book object for each author?
I don't trust a coder who uses a variable-width font in his editor.
Can we dynamically assign dynamic reference where you assigned bookSchema to autorSchema?
For example, let's say we want to make creativePeopleSchema which has Name age and creation as fields. so the question is can we reference movieSchema or bookSchema or paintingSchema to creativePeopleSchema via creation field????
(PS: I have a completely different problem but in this context, we can use this as an example to my problem )
URGENT!!!!!!hello sensei!!!!!!!!!!!! your series are the best i have been recommending to my friends learning to code. i need help in building a schema for an admin that has control over other sub admins and users can you teach me sir or recommend a resource
Hi Net Ninja, How can I use this schema for storing array of objects coming from frontend API(using angular reactive forms for creating array of objects)?
Dammit! you derserve way more likes and views for your awsome videos
Mistborn on VueJS and now KKC ! I love your reading preferences xD
Sad that you are using mongoose. MongoDB is great for its flexibility, mongoose is a killer of that principle.
This works for me, but I get an error when I import those subdocuments, i.e. storing them in other folders.
So what are the performance implications if you want to get a list of all books? Not just the books of a single author?
Dude, "Name of the Wind" and "Wise Man's Fear" are incredible!! You get a subscription for that!
FYI your audio is very quiet. I had to put my volume up 300%, which made everything else on my computer explode my apartment.
Just finished this video. Amazing content. Thank you! 🙂
That's great
good keep posting