Querying Related List Fields Within One Or More Documents - FlutterFlow

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ค. 2023
  • In this short tutorial, I will demonstrate how to pull data from multiple list fields with one or several documents, as that data relates to each other, and display it in listView query. Sometimes it's useful to be able to pull list data from a document and have it associated, for example, if you have a user cart document and want to show the name of an item, the price of that item and the total quantity the user is wanting to purchase, you need to be able to pull the data from each of the list fields and show the information next to each other in a query.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @BriqueStudios
    @BriqueStudios วันที่ผ่านมา

    How do you navigate a list view? If I click on each item how does it go to a separate page?

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

    Thank you so much for these tutorials - you cover so many little things the others skip (even Flutterflow's own documentation).
    Question - when generating lists from dynamic children like in this example, is there a way to order those lists? Or do you have to structure each one in a collection/subcollection of it's own and query each individually? I have an app that allows contacts to have dynamic lists of multiple phone numbers, emails and links (each with their own label). As they're all a part of one contact it would be great to have them queried via the one contact details document, but I want each list to be sorted alphabetically based on the label.

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

    great tutorial I came across your channel by chance, wonderful content. I have a question, is it possible to have a food collection with all its details then an order collection with a list type field which contains the food references and to start from the order collection to find the food information?

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

      I would suggest looking at using sub collections

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

      @@teknesis7339 can you give me a tutorial? and also the flutterflow team advises against the use of subcollections

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

    Is it possible to do this but have the list datafield as a custom datafield with more datatypes?

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

      Do you mean applying a custom data field type in Firebase?

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

    Hi, nice tutorial! Is it possible to update the document with a text field on the same page and reload it, so that your list view is showing the added item? Thanks for the reply (:

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

      Unless you've set single time query to true or have something else blocking it, updates will automatically show in a query as Firestore acts as a real time database