MongoDB Tutorial #15 – Relational Data



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

Views:
109
Article Tags:
Article Categories:
Giải Trí

Comments

  • 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

    hyperborean72 July 4, 2020 8:32 am Reply
  • it's really better if you code routers to execute them

    ReDo Chanel July 4, 2020 8:32 am Reply
  • He explains it very beautifully and the revision at the end of every video helps to grasp the whole concept.

    Anupam Dung Dung July 4, 2020 8:32 am Reply
  • How can i get all documents with books array are sorted in?

    bow glad July 4, 2020 8:32 am Reply
  • which schema shall we insert first ? author or book ?

    Nguyễn Châu Thảo Quân July 4, 2020 8:32 am Reply
  • mongoose tutorial

    Tunç Polat July 4, 2020 8:32 am Reply
  • Solved my biggest problem.

    Rubnawaz Qureshi July 4, 2020 8:32 am Reply
  • Dude you saved my life!!!!

    Donovan Andrews July 4, 2020 8:32 am Reply
  • Never thought it could be this easy and never thought i could a find youtuber to explain it so well! Thank you!

    Pauli Liatto July 4, 2020 8:32 am Reply
  • 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

    kamran javed July 4, 2020 8:32 am Reply
  • what if I store only id's

    Juan M July 4, 2020 8:32 am Reply
  • 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

    T Neids July 4, 2020 8:32 am Reply
  • What keyboard do you use? it sounds amazing!!!

    Erodotos Demetriou July 4, 2020 8:32 am Reply
  • Hi The net ninja, is this model OK if I want to search book by genure? Pls suggest me how to search

    Jeyaraman Veluchamy July 4, 2020 8:32 am Reply
  • 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).

    Yash July 4, 2020 8:32 am Reply
  • But if we have another document that also uses books, what can we do? Replicate the data?

    Leonardo Da Vinci Feliciano Sebastião July 4, 2020 8:32 am Reply
  • @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?

    Yunus July 4, 2020 8:32 am Reply
  • Please, Can I have your twitter handle

    Samuel Adebayo July 4, 2020 8:32 am Reply
  • Net Ninja, you are the beeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssstttt

    Samuel Adebayo July 4, 2020 8:32 am Reply
  • 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?

    You're mom July 4, 2020 8:32 am Reply
  • I don't trust a coder who uses a variable-width font in his editor.

    Isosceles Kramer July 4, 2020 8:32 am Reply
  • 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 )

    Kaushik Makwana July 4, 2020 8:32 am Reply
  • 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

    I July 4, 2020 8:32 am Reply
  • 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)?

    Sanjay Yadav July 4, 2020 8:32 am Reply
  • Dammit! you derserve way more likes and views for your awsome videos

    Noctis Rey July 4, 2020 8:32 am Reply
  • Mistborn on VueJS and now KKC ! I love your reading preferences xD

    Noctis Rey July 4, 2020 8:32 am Reply
  • Sad that you are using mongoose. MongoDB is great for its flexibility, mongoose is a killer of that principle.

    Probine Business July 4, 2020 8:32 am Reply
  • This works for me, but I get an error when I import those subdocuments, i.e. storing them in other folders.

    Christian Müller July 4, 2020 8:32 am Reply
  • So what are the performance implications if you want to get a list of all books? Not just the books of a single author?

    CodeMonkeyCharlie July 4, 2020 8:32 am Reply
  • Dude, "Name of the Wind" and "Wise Man's Fear" are incredible!! You get a subscription for that!

    Justin Barry July 4, 2020 8:32 am Reply
  • FYI your audio is very quiet. I had to put my volume up 300%, which made everything else on my computer explode my apartment.

    JonnyBeoulve July 4, 2020 8:32 am Reply
  • Just finished this video. Amazing content. Thank you! 🙂

    Capitalist July 4, 2020 8:32 am Reply
  • That's great

    ill-fated Stranger July 4, 2020 8:32 am Reply
  • good keep posting

    jithin kg July 4, 2020 8:32 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *