#21 One to many relation using references | Relations in MongoDB | A Complete MongoDB Course

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

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

  • @AmitKumar-cp6mx
    @AmitKumar-cp6mx Год назад +1

    Using customer reference in order collection is more correct way to deal with this scenario

  • @akshayreddy5287
    @akshayreddy5287 6 месяцев назад

    In case if you cannot see the bottom of your screen, zoom out your screen by pressing [Ctrl/Cmd and minus(-)]

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

    NIce explaination

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

    MongoDB: One to Many Relationns using References, well explained. Thank you.
    {2023-08-23}

  • @lutfiikbalmajid
    @lutfiikbalmajid Год назад +2

    Use "Enter" Bro, add spaces, i can't see if you typing in bottom of screen.

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

    hello brother when write code kindly clear the screen and write top of the window, you are writing extreme footer side of the window

  • @AviAlgaly
    @AviAlgaly 11 месяцев назад

    So, How do you get the order details, another lookup ?

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

    Can we store the id of the customer in the order collection?
    because if the number of orders exceeds then we will have to store a large number of orders in the customer collection unnecessarily

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

    how do you find the product details along with the order details, please try to reply my comment

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

    This is a many to many relationship, not one to many... The same order can be in multiple customers. To be one to many the order should have a reference to the customer...

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

      How can multiple customers have the same order? Multiple customers can order the same product but no two customers will have the same order. Not possible.

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

    how is mongo-db is non-relational database and we also use relations between collections like one to many and many to many ?

    • @kip5.56
      @kip5.56 Год назад +1

      Mongodb is misunderstood its not a relational database like sql but you can make relationships its also called no sql but you can use structured query languages on it.

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

      @@kip5.56 is there an alternative how to solve such problems? i think relations are a good option

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

      I understood that MongoDB offers the possibility to have unstructured, nested data, as opposed to SQL and tables where your data is structured in a "rigid" way and you have to perform JOIN etc. But procademy's series of "Relations in MongoDB", course from #16 onwards, shows how you can design these relationships (embedding vs referencing), given the non-structure of the data, and which strategy is best given your use case/app performance needs.

  • @programmingwithsaroj
    @programmingwithsaroj 6 месяцев назад

    Last screen not visible properly. Waste video.