Learning a new programming language or tool is really easy as long as there is a Net Ninja tutorial series available on that topic :)
Thanks Shaun for what u do for the community.
You are my new favorite channel for learning now...keep up the good work 👍
Thanks!
- 04:40 -
Brandon Sanderson is 47 years old; Born at Dec 19th 1975.
Insert One Code: {
title: "The Color of Magic",
author: "Terry Pratchett",
pages: 300,
rating: 7,
genres: ["fantasy", "magic"]
}
The least I can do is like and say thank you.
I will do this insha'Allah on every video I watch :)
Can you rearrange the fields? I noticed that the Color of Magic is in a different order than the others.
another great series! i noticed that you only use mongodb package in this series, in previous (2017) series, you only use mongoose package, just wonder which package is better? i assume mongoose is better if schema is used, right? no need to use both packages in same app, correct? and do we really need schema?
Help me
the cod showing success but it is not reflected in the MongoDB compass
Why at the very top it states "5 documents, 1 index" while documents are 7? (Indeed it is stated below that).
Just for curiosity.
Hello Shaun! its weird you are not much into Postgres. I actually migrated from mongo to PG because of troubles i was having with relations.
Can you shortly explain this issue for a beginner? What is relations and what are the troubles?
@@jijobuje mongo is good for starting your projects, and surely is a good db, although for most of the cases an app
has many relationships (user info, user data, comments, likes…) and using mongo for that is a big no no. Using a nosql for relationships is not very compatible.
Not sure I like the shell allowing me to use databases and collections that don't exist yet. It is error prone. If I misspell a collection name, it will create a new collection and if I'm not checking, it could lead to a lot of rework.
good series. thanks!
Is it possible to insert .msg file or .docx in mongodb document?
love from Bangladesh, I have faced a problem, I can not add pull to refresh with . how can i solve it. help me!!!
Indeed, magic is definitely a genre. 😁
in my situation it creating second book collection, so i have 2. don't know why
Please teach Ajax as well
Brandon is 46 lol. You should check out Amazon's Wheel of Time which he helped finish the series from Robert Jordan and helped out in the tv show.
If you got excited and want to drop the collection from within the shell before visiting next video, you can try following two options:
db.authors.drop()
db["authors"].drop()
insertOne: {title: "The Color of Magic", author: "Terry Pratchett", pages: 300, rating: 7, genres: ["fantasy", "magic"]}
I like " Net Ninja "
Alright there, gang
completed
00:44= add new Document,
I think we have a similar taste for books lol
My professor owes you his paycheck
🧡
{2022-12-28}
Hopefully Brandon Sanderson doesn't see this XD
Brandon is definitely not 60
I really respect you Mr. The Net Ninja, but the fact that you have given The Color of Magic and The Light Fantastic ratings of 7 and 6 respectively, you have fallen... Oh how you have fallen...
Notes:
db.books.insertOne({}) = This is used to enter one document into collection
db.books.insertMany({}, {}) = This is used to enter more than one document into collection
although this comment is late but you forgot to wrap the double brackets inside of []
- db.books.insertOne({ }) : insert document to collection
Insert many code: [{title: "The Light Fantastic", author: "Terry Pratchett", pages: 250, rating: 6, genres: ["fantasy"]}, {title: "Dune", author: "Frank Herbert", pages: 500, rating: 10, genres: ["sci-fi", "dystopian"]}]
you got a typo. should be :
[{title: "The Light Fantastic", author: "Terry Pratchett", pages: 250, rating: 6, genres: ["fantasy"]}, {title: "Dune", author: "Frank Herbert", pages: 500, rating: 10, genres: ["sci-fi", "dystopian"]}]
my hero
THANKS!
Thanks
thank you