Add subcollection inside collection in flutter firestore

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 มี.ค. 2022
  • In this video you can see that how to create collections and inside that collections how to create subcollections inside that collection using flutter in firestore

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

  • @kj7767
    @kj7767 ปีที่แล้ว +2

    your efforts appreciated for recording while sleeping

  • @Sergio-ep8zh
    @Sergio-ep8zh 2 ปีที่แล้ว +2

    great video, thanks!!!!!

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

    Awesome video! Thank you so much!

  • @edsonsanchez5562
    @edsonsanchez5562 2 ปีที่แล้ว

    great video!! could you explain how to filter data from sub collections using collectionGroup?

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

    do you have more videos about this ?

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

    Hi, May I know how can i retreive the user added favourite data with auth from the subcollection document?

    • @muhammadadnanijaz7340
      @muhammadadnanijaz7340  2 ปีที่แล้ว

      FirebaseFirestore.instance .collection('users') .get() .then((QuerySnapshot querySnapshot) { querySnapshot.docs.forEach((doc) { FirebaseFirestore.instance .document(doc.id) .collection("jobPost") .get() .then(...); }); });
      You have to fetch subCollections of that user. In the given code we have all the users with "jobposts" subCollections.

    • @tanjl4748
      @tanjl4748 2 ปีที่แล้ว

      @@muhammadadnanijaz7340 Hi, Thanks for reply. But i am not really understand the code provider.
      For the code provided how can i put the >>>>
      final FirebaseAuth _auth = FirebaseAuth.instance;
      var currentUser = _auth.currentUser;
      to verify the same user email added favourite
      >>>> to ***doc(doc.id)***.collection("jobPost") since doc(doc.id) cant be replace
      and what should i put for then(what should i put?)? a jobPost class?

    • @3litepker
      @3litepker 2 ปีที่แล้ว

      @@muhammadadnanijaz7340 this looks extremely convoluted. Isn’t there a better way?

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

    how can i display collection(USA )all data

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

      If you wanted to show all data you have to use multiple stream builders like stream builder within stream builder

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

    audio so low, even at 100%

  • @codingskills5123
    @codingskills5123 2 ปีที่แล้ว

    hello dear .how to upload data to subcollections ?

    • @muhammadadnanijaz7340
      @muhammadadnanijaz7340  2 ปีที่แล้ว

      Kindly watch the video carefully i have added data to subCollections

    • @muhammadadnanijaz7340
      @muhammadadnanijaz7340  2 ปีที่แล้ว

      @Cute status
      FirebaseFirestore.instance .collection('users') .get() .then((QuerySnapshot querySnapshot) { querySnapshot.docs.forEach((doc) { FirebaseFirestore.instance .document(doc.id) .collection("jobPost") .get() .then(...); }); });
      You have to fetch subCollections of that user. In the given code we have all the users with "jobposts" subCollections.

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

    Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
    W/DynamiteModule(24040): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
    I/DynamiteModule(24040): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
    Help me sir?