Complete MongoDB Tutorial #9 - Nested Documents

preview_player
Показать описание
🐱‍💻 View this course & other premium courses without ads on the Net Ninja Pro site:

🐱‍💻 Access the course files on GitHub:
(lesson code available from lesson 15 onwards)

🐱‍💻 Modern JavaScript Course:

Рекомендации по теме
Комментарии
Автор

The least I can do is like and say thank you.

I will do this insha'Allah on every video I watch :)

abdellahiaioun
Автор

correct as author for many documents: [{title: "The Light Fantastic", author: "Terry Pratchett", pages: 250, rating: 6, genres: ["fantasy", "magic"], reviews: [{name:"luigi", body: "it was pretty good"}, {name: "bowser", body: "loved it!!"}]}, {title: "The Name of the Wind", "author": "Patrick Rothfuss", page: 500, "rating": 10, genres: ["fantasy"], review: [{name: "peach", body: "one of my favs"}]}, {title: "The Color of Magic", "author": "Terry Pratchett", page: 350, "rating": 8, genres: ["fantasy", "magic"], review: [{name: "luigi", body: "it was ok"}, {name: "bowser", body: "really good book"}]}, {title: "1984", "author": "George Orwell", page: 300, "rating": 6, genres: ["sci-fi", "dystopian"], review: [{name: "peach", body: "not my cup of tea"}, {name: "mario", body: "meh"}]}]

quanghungtran
Автор

Single document: {
title: "The Way of Kings",
author: "Brandon Sanderson",
rating: 9,
pages: 320,
genres: ["fantasy"],
reviews: [{
name: "Yoshi",
body: "Great book!!!"
},
{
name: "mario",
body: "So so"
}
]
})

_rtdp_
Автор

I liked the video before watching it because I know it's going to be so useful, you've helped me a lot so thank you sir

merryj-
Автор

Thanks for that clarification on an approach of how I am supposed to decide wheather I want to create another collection or create an array of collections inside an existing collection. One data fetch request - one collection seems to be a nice guideline.

Vlad-swzd
Автор

I really like the explanation about filtering at 2:00

shiningchen
Автор

Waited eagerly for this one.. could you make videos more often sir because we miss you!

TheAzmi
Автор

Good job

you can also cover sorting with specifying a collation because the normal sort covered in video is case-sensitive.

adhammagdy
Автор

If nested documents got a new object I'd separately, canwe update it directly?

swarnatharar
Автор

Man I love you, Thank you so much for these vedios

Eslam-iggf
Автор

insertMany:

[ { title: 'The Light Fantastic', author: 'Terry Pratchett', pages: 250, rating: 6, genres: ['fantasy', 'magic'], reviews: [ { name: 'Luigi', body: 'It was pretty good' }, { name: 'Bowser', body: 'Loved It!!!' }, ], }, { title: 'The Name of the Wind', author: 'Patrick Rothfuss', pages: 500, rating: 10, genres: ['fantasy'], reviews: [{ name: 'Peach', body: 'One of my favs' }], }, { title: 'The Color of Magic', author: 'Terry Pratchett', pages: 350, rating: 8, genres: ['fantasy', 'magic'], reviews: [ { name: 'Luigi', body: 'It was OK' }, { name: 'Bowser', body: 'Really good book' }, ], }, { title: '1984', author: 'George Orwell', pages: 300, rating: 6, genres: ['sci-fi', 'dystopian'], reviews: [ { name: 'Peach', body: 'Not my cup of tea' }, { name: 'Mario', body: 'Meh' }, ], }, ]

phamtiensang
Автор

Thanks a lot for this video man!!! 💯💯💯💯💯💯💯

vedant
Автор

Great viudeo tnx, justo a question.
How can i filter books by a specify genre?
Thank you for reply

giorgiobrugnone
Автор

you are the best mern stack teacher i have seen please start a series on redux-saga please please please and thank you for teaching

santrawebtech
Автор

I have a question. I don t understand why it is "db.books" if books is just the collection and bookstore is the database actually. I hope I am not wrong, but also I would need some help to understand. Thank you!

gileabiancaionela
Автор

why don't nested documents have a unique _id assigned to them automatically?

acw
Автор

So, if you want a nested document inside a nested document you need to write all the code for the first nested document(Like a path)?

aggelikitsipira
Автор

Hi where should I start react native from your channel play list

arunrajkumard
Автор

Man I need your suggestion what is the best database software for web system and pos system for local connection, and also what is the best programming language for creating these two(2) that I mention. Thanks man.

corneliollagas
Автор

Also cover uploading images/videos/PDFs to mongodb

rishabsharma
visit shbcf.ru