Flutter+Firebase: How to use Nested Collections in cloud firestore

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2022
  • In this video, you'll learn:-
    1. Why use NestedCollections instead of arrays?
    2. How to create a collection inside a document?
    3. How to add items to a nested collection?
    4. Fetch items from a nested collection and display them using a ListView?
    5. How many levels of nesting are possible?
    Source code: github.com/gitanjal/firebase_...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @daniellawibz3878
    @daniellawibz3878 หลายเดือนก่อน +1

    Bro thank you for what you're doing!

    • @droidmonk4820
      @droidmonk4820  หลายเดือนก่อน

      Thanks for commenting, stay connected.

  • @harshpujara2114
    @harshpujara2114 ปีที่แล้ว +1

    Explained it nicely !! Thanks

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      Glad it was helpful! Stay connected.

  • @MrxAmjad
    @MrxAmjad 10 หลายเดือนก่อน

    Thanks man, After watching a lots of tutorial I was very disappointed by complex data, and documentation , But you made it very very simple❤, by my side you got, subscribe+bell, Likes, and multiple share in my community, keep doing it❤

    • @droidmonk4820
      @droidmonk4820  10 หลายเดือนก่อน

      Thank you very much for subscribing, liking, pressing the bell and for sharing . You made my day 🎉🎉. Stay connected.

  • @mdsakibhasan
    @mdsakibhasan ปีที่แล้ว

    Easy to understand 😄Well Explained

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว +1

      Glad you liked it. Stay connected.

  • @satdevlpr
    @satdevlpr ปีที่แล้ว +1

    Excellent Video on sub collection

  • @AhamedShadhir
    @AhamedShadhir ปีที่แล้ว

    Much needed Tutorial! Thanks for the video. May I know is there a previous video of your add post function?

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      Glad you like it!
      You can find the other related videos in this playlist....
      th-cam.com/play/PLorBban-4UBBlpDhG_bCLm2i-z_xTSP6v.html
      Stay connected.

  • @brakdarany1616
    @brakdarany1616 6 หลายเดือนก่อน

    Amazing explanation

    • @droidmonk4820
      @droidmonk4820  5 หลายเดือนก่อน

      Glad you liked it

  • @mohamedabdel-tawab7887
    @mohamedabdel-tawab7887 10 หลายเดือนก่อน

    Very helpful thank you

    • @droidmonk4820
      @droidmonk4820  10 หลายเดือนก่อน

      Glad it was helpful! Stay connected.

  • @kojiaxin4201
    @kojiaxin4201 ปีที่แล้ว +1

    Thank you for the video! It was very easy to follow and understand. May I know how can I allow the users to edit the comment?

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      Glad that you liked it.
      To allow user to edit comments , first you will need to authenticate the users, then using a form allow the users to enter new data and finally update the corresponding data on the firestore database.
      You may learn more from this video:
      th-cam.com/video/Oc3gjKzTxCU/w-d-xo.html
      Tutorial on Google authentication:
      th-cam.com/video/VCrXSFqdsoA/w-d-xo.html

    • @kojiaxin4201
      @kojiaxin4201 ปีที่แล้ว

      @@droidmonk4820 thank you so much! I will try it out~

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      You are welcome, feel free to comment in case you face any difficulty.
      I will be creating a complete Flutter+Firebase project tutorial soon, so stay connected.

  • @mkwriterchannel1375
    @mkwriterchannel1375 ปีที่แล้ว

    Sir on a firebase i have 5 column
    ReviewCart
    Id
    YourReviewCart
    Id
    Data i want to retrieve
    Mene bohot try kia nut data null a rha ap thora guide kr de mn kese data retrieve kro

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      This video should help you...
      th-cam.com/video/XS5cVQ3-aDo/w-d-xo.html
      Fields retrieve karneke waqt null check karo... if any field is missing in any document you may get null errors

  • @ravindrametri1681
    @ravindrametri1681 ปีที่แล้ว

    Plz make video on how delete collection with sub collections

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว +1

      Do you want to delete a complete collection from the app itself?
      According to the official documents--
      "Deleting collections from the client is not recommended."
      Let me know your use case, and I'll try to find the best solution for you.

    • @ravindrametri1681
      @ravindrametri1681 ปีที่แล้ว

      @@droidmonk4820 i am waiting

  • @hikmatonline3894
    @hikmatonline3894 ปีที่แล้ว

    FirebaseFirestore.instance.collection('mujarrabaat_e_tabib').doc(widget.docId).collection("index").doc(widget.documentId).snapshots();
    thanks for your guidance.... your content so much better and easy to understand....
    sir can you solve this query using stream builder???

    • @droidmonk4820
      @droidmonk4820  ปีที่แล้ว

      You have to do something like ------
      Stream streamData=FirebaseFirestore.instance.collection('mujarrabaat_e_tabib').doc(widget.docId).collection("index").doc(widget.documentId).snapshots();
      ....
      ...
      StreamBuilder(
      stream:streamData;
      builder: (context,snapshot){
      Map data=snapshot.data();
      return ;
      }
      )
      I hope this helps.