if only my CST-345 class referenced this series as the curriculum for MongoDB! I could not figure out how to use the shell for MongoDB based on their instructions. Thank you!
This series couldn't have come at a better time, as I'm looking to start working on a large project and leaning towards the MERN stack. Cheers Shaun, great content and easy to follow, as always!
@@bekiteshome4670 it depends if you are new to the field, it would take at least six months for you to learn frontend and fundamentals of backend + some projects on both frontend and backend
Is there a scenario with MongoDB or NOSQL in general where you would still use a lookup table? Thinking in this example where we would have a separate lookup table with authors. Then the "author" value would be a reference to the Author Lookup Table's unique ID.
7 месяцев назад
I am still a begginner at this so I might be wrong, if so please someone correct me: But I believe, for instance you want to keep address of authors if you keep the author as an nested document it would mean you can have 2 (or more] "Terry Pretchett" with diferent addresses in different books, if you would want to make sure there is only one Terry Pretchett you would need to separate Authors to a different collection and reference by ID
There's an error when pulling with $each: MongoServerError: unknown top level operator: $each. If you have a field name that starts with a '$' symbol, consider using $getField or $setField. I simply replaced the $push operator to $pull. Does $each only work for $push?
I have a question, I'm new to MongoDb and I came across a situation which is the following. Using your books collection as an example, how would you update a property of your nested array of reviews, let's say you would like to updated the "body" of the first review on for your "The Color of Magic" book , I can't figure how would you do that.
Thank you so much sir... You are a great guru (teacher) making others life easier with tech... may God bless you
So nice of you :) thanks!
if only my CST-345 class referenced this series as the curriculum for MongoDB! I could not figure out how to use the shell for MongoDB based on their instructions. Thank you!
Hey Shaun, It would be great If you add videos about complex queries and relation strategies.
This series couldn't have come at a better time, as I'm looking to start working on a large project and leaning towards the MERN stack. Cheers Shaun, great content and easy to follow, as always!
is it hard being full stack developer?
@@bekiteshome4670 not hard, but definitely would take time
@@aliwarraich5067 how much time does it take yours to become full stack dev.
@@bekiteshome4670 it depends if you are new to the field, it would take at least six months for you to learn frontend and fundamentals of backend + some projects on both frontend and backend
@@bekiteshome4670 for me, its been two years since I first started learning web but I didn't learn all the stack together because of my studies
Thank you 😊
Is there a scenario with MongoDB or NOSQL in general where you would still use a lookup table? Thinking in this example where we would have a separate lookup table with authors. Then the "author" value would be a reference to the Author Lookup Table's unique ID.
I am still a begginner at this so I might be wrong, if so please someone correct me: But I believe, for instance you want to keep address of authors if you keep the author as an nested document it would mean you can have 2 (or more] "Terry Pretchett" with diferent addresses in different books, if you would want to make sure there is only one Terry Pretchett you would need to separate Authors to a different collection and reference by ID
God bless you sensei 🙇♂️🙏
There's an error when pulling with $each: MongoServerError: unknown top level operator: $each. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.
I simply replaced the $push operator to $pull. Does $each only work for $push?
you can try this
db.books.updateOne({_id:ObjectId("639be6ae4d7ef7d4b96b8cc7")}, {$pull: {genres: {$in: ["1","2"]}}})
@@a0955383566thanks. It worked. Is that the new update? In instead of each?
I also tried doing that, I thought it was going to work.
try using $in instead of $each
Thank you very much.
great stuff man!!!
I have a question, I'm new to MongoDb and I came across a situation which is the following. Using your books collection as an example, how would you update a property of your nested array of reviews, let's say you would like to updated the "body" of the first review on for your "The Color of Magic" book , I can't figure how would you do that.
Such a clear tutorial on updating MongoDB Documents. Thank you, Shaun.
{2023-09-01}
Need mysql tutorials
The push and pull operators (with the each) were right on the money!
Thanks a lot mate, saved me a day or two over here 😅
You have used a constant value 8 to update ratings field, but can we code like this segment to update the same value....{rating: rating-1}...??
Hey man great stuff, could you do some cypress tutorials please. Love from Bosnia 🇧🇦
Yup [cypress series by Net Ninja] ++
After mongodb is there a chance for you to make mariadb? I am so used to your tutorials that it can help me very much seeing it from you :D
good presentation of practical skills
👍👍👍
You're my favourite go-to tutorial!
Wow, thank you! :)