Комментарии:
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}
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!
Ответить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 😅
👍👍👍
Ответить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?
God bless you sensei 🙇♂️🙏
ОтветитьIf you want to pull these values back out:
db.books.updateOne({ _id: ObjectId("630e45de45c09161952d2db5") }, {$pull: {genres: {$in: ["2", "1"]}}})
You're my favourite go-to tutorial!
Ответитьgood presentation of practical skills
Ответить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.
Ответить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
Ответить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!
ОтветитьNeed mysql tutorials
Ответитьgreat stuff man!!!
ОтветитьHey Shaun, It would be great If you add videos about complex queries and relation strategies.
ОтветитьHey man great stuff, could you do some cypress tutorials please. Love from Bosnia 🇧🇦
Ответить