Complete MongoDB Tutorial #14 - Updating Documents

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024

Комментарии • 36

  • @dhokiarinidh9809
    @dhokiarinidh9809 8 месяцев назад +1

    Thank you so much sir... You are a great guru (teacher) making others life easier with tech... may God bless you

    • @NetNinja
      @NetNinja  8 месяцев назад

      So nice of you :) thanks!

  • @jtlewis81
    @jtlewis81 Год назад

    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!

  • @sadev0
    @sadev0 2 года назад

    Hey Shaun, It would be great If you add videos about complex queries and relation strategies.

  • @themajesticbeard1497
    @themajesticbeard1497 2 года назад +14

    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
      @bekiteshome4670 Год назад

      is it hard being full stack developer?

    • @aliwarraich5067
      @aliwarraich5067 Год назад +1

      @@bekiteshome4670 not hard, but definitely would take time

    • @bekiteshome4670
      @bekiteshome4670 Год назад

      @@aliwarraich5067 how much time does it take yours to become full stack dev.

    • @aliwarraich5067
      @aliwarraich5067 Год назад

      @@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

    • @aliwarraich5067
      @aliwarraich5067 Год назад

      ​@@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

  • @whodat7084
    @whodat7084 2 месяца назад

    Thank you 😊

  • @mitchell4217
    @mitchell4217 2 года назад +2

    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

  • @tobiolaleye3353
    @tobiolaleye3353 2 года назад

    God bless you sensei 🙇‍♂️🙏

  • @mikuronightray5902
    @mikuronightray5902 Год назад +4

    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?

    • @a0955383566
      @a0955383566 Год назад +1

      you can try this
      db.books.updateOne({_id:ObjectId("639be6ae4d7ef7d4b96b8cc7")}, {$pull: {genres: {$in: ["1","2"]}}})

    • @hk254lyt8
      @hk254lyt8 8 месяцев назад

      @@a0955383566thanks. It worked. Is that the new update? In instead of each?

    • @andromilk2634
      @andromilk2634 6 месяцев назад +1

      I also tried doing that, I thought it was going to work.

    • @syedabdulmuyeed100
      @syedabdulmuyeed100 4 дня назад

      try using $in instead of $each

  • @greaper3180
    @greaper3180 9 месяцев назад

    Thank you very much.

  • @jeal0uspengu1n
    @jeal0uspengu1n 2 года назад

    great stuff man!!!

  • @jhonathanmaia386
    @jhonathanmaia386 10 месяцев назад

    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.

  • @Pareshbpatel
    @Pareshbpatel Год назад

    Such a clear tutorial on updating MongoDB Documents. Thank you, Shaun.
    {2023-09-01}

  • @vinayakram5133
    @vinayakram5133 2 года назад

    Need mysql tutorials

  • @henriqueflorencio5275
    @henriqueflorencio5275 Год назад +4

    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 😅

  • @e-sikshatutorials1015
    @e-sikshatutorials1015 4 месяца назад

    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}...??

  • @fosfatazmotest7657
    @fosfatazmotest7657 2 года назад +1

    Hey man great stuff, could you do some cypress tutorials please. Love from Bosnia 🇧🇦

    • @sadev0
      @sadev0 2 года назад +1

      Yup [cypress series by Net Ninja] ++

  • @borgaiskender796
    @borgaiskender796 2 года назад

    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

  • @СтаниславСедов-и4ж
    @СтаниславСедов-и4ж 2 года назад

    good presentation of practical skills

  • @Code7s
    @Code7s Год назад

    👍👍👍

  • @dweebycat9929
    @dweebycat9929 2 года назад

    You're my favourite go-to tutorial!

    • @NetNinja
      @NetNinja  2 года назад

      Wow, thank you! :)