Dynamic Children Query Versus Backend Query: What's the difference? - Flutterflow

Поділитися
Вставка
  • Опубліковано 18 січ 2025
  • In this short tutorial, I will address some of the main differences between a standard backend query and a dynamic children query, how I use them, why I use them, and where document from reference plays a role in querying dynamic children. Understanding how, why and when you would use dynamic children instead of a backend query can make generating data for users much easier and less time consuming.

КОМЕНТАРІ • 62

  • @leonlim1625
    @leonlim1625 Рік тому +1

    Great explanation on the concept and use case for Dynamic Children and Backend Query. Enjoy your well-deserved vacation and look forward to more tutorials in the coming week. Cheers

  • @beepypeepy
    @beepypeepy Рік тому

    Looking forward to more! Enjoy your much-deserved vacation!

  • @amenlaatig844
    @amenlaatig844 Місяць тому

    Great video , i like your contents😃😃

  • @IspyrGameDev
    @IspyrGameDev Рік тому

    Excellent tutorial and well explained, the last step was tripping me up. Cheers! You have a new sub

  • @AlfaRomeoFox
    @AlfaRomeoFox 8 місяців тому +2

    Everything goes well until I reached minute 7:56... it seems that something changed on FF that it doesn´t allow to choose the friendslist item, because in this version index in list (in red) doesn´t go away and it appear a message "variable not valid". Do you have any update... I will much appreciate it.

    • @NeonMachine-7
      @NeonMachine-7 2 місяці тому

      Yo, Im having currently the same problem, have you found a solution to it?

    • @MARILOUMBRASAN
      @MARILOUMBRASAN 16 днів тому

      @NeonMachine-7 same. Have you found the solution?

    • @AlfaRomeoFox
      @AlfaRomeoFox 16 днів тому

      @@MARILOUMBRASAN tell me what you are trying to do and I might help you. They have half implement (as usual with FF) some functionalities that might be useful for you.

  • @sharoni3d
    @sharoni3d 9 місяців тому

    thank you so much for making this video I wasn't able to figure out how to display those damn info

  • @iusoa
    @iusoa Рік тому

    Thank you so much for this tutorial!! You've saved me

  • @Caden_Burleson
    @Caden_Burleson Рік тому

    Could you go through some of the options @4:30 You say you could use array contains, but then don't do it. I'm curious of the various other ways you might be able to set something like this up.

  • @vince2nd
    @vince2nd Рік тому +2

    Thank God for your videos. I dont think Flutterflow has made a decent video explaining this concept.
    I think i'm getting the hang of it now (document reference, etc).
    I wish Flutterflow would simplify the process though... one of the things that confused me in the beginning was: having "Document from reference" under Backend Query section, but also have Document from reference in the Variable section and also in the Firestore section.
    7:52 is confusing if you dont know/ never done this. So thanks for clearing that up.
    The only other part that would confuse me is passing parameters from page to page.
    Like if i got the list of users and wanted to visit that users profile, would i need to pass a parameter and the doc reference or the entire document?? It gets confusing after a while.

    • @teknesis7339
      @teknesis7339  Рік тому +2

      Yeah passing references isn’t hard once you get the hang of why and what you’re passing. To your example, if you have a list of users, you’d set a navigate action to their profile and set a page-level parameter in that navigate action, and set it to document reference > users, which will PSs that user’s information to the profile page. Then generate a backend query > document from reference and select that page level reference you passed to get the user’s information, where you can then fill in the details on the profile page (name, photo, etc).

    • @vince2nd
      @vince2nd Рік тому +1

      @@teknesis7339 I think that last part is where I was screwing up.. I'd choose query database instead of document reference.
      But yea that makes sense

  • @TinnitusCureandMasks
    @TinnitusCureandMasks 6 місяців тому

    Thanks you for this video. Do you you how to refresh the ListView, generated with Dynamic Children ? Because everything work fine, but the refreshing. I have goto another page and then come back to the listview page for seeing the changes...
    I made exactly the same ListView but with the classical QUERY method (without "One time Query'), and the page refreshed ...
    So I dunno what to do, because I really want to keep the Dynamic Chiidlren...
    Thank you !

  • @guyfeigin1543
    @guyfeigin1543 Рік тому

    Great video. I have background in C.S so I can understand what's happening under the hood,i.e lists and pointers. I think that if you drew diagrams of pointers and lists can help to understand better. Thanks again !!!

  • @ermanozkaya
    @ermanozkaya Рік тому

    This a very beneficial tutorial. Thank you

  • @iam-peacemaker
    @iam-peacemaker 7 місяців тому

    Very powerful, great tut.

  • @amritbanerjee
    @amritbanerjee 6 місяців тому

    Which costs more eventually? Getting all the documents info in one query or getting each document’s info one query at a time?

  • @MTGameMaker
    @MTGameMaker 9 місяців тому

    thanks i was looking for this but i am just worried that it may take to many calls to the database !!!

  • @BriqueStudios
    @BriqueStudios 6 місяців тому

    So I have a list of categories. Everything is going smoothly until I try to create a document in a subcategory based on the list of categories ; then I can’t query that sub collection / cat when I click on the category. Help please?

  • @EmblazNOR
    @EmblazNOR Рік тому

    Thank you! Enjoy your vacation, sincerely

  • @raffaelyork
    @raffaelyork 11 місяців тому

    Hi, nice vid! Would you mind creating a video where you can explain what's the difference between Doc Reference and Query Collection?

  • @meroces1
    @meroces1 11 місяців тому

    Hey I have one question: I created a list just like this, but with one difference. I want to update the data of this list items right away (e.g. the displayed name). --> I created a site where you can increase a counter for rooms in a flat. In the cards, I also have two textfields that should serve as input for further data to update documents in firestore with.
    Is there a way to capture these dynamically generated textfields so that I can use these data for updating documents?
    Thank you so much for your videos!

    • @teknesis7339
      @teknesis7339  9 місяців тому

      Join my Discord to get help

    • @amritbanerjee
      @amritbanerjee 6 місяців тому

      You could do a page load action of querying all the documents in a loop using the index and appending it to a page parameter that takes lists. You then use the page parameter in your widget.

  • @travl4457
    @travl4457 7 місяців тому

    Great video! Appreciate the help. Follow-up, how would you go about filtering the document references returned in your example? Say each user document had a field "status" that was a boolean. So the goal would be to return the list of friends as you did but only the ones where their status field was == TRUE? When I try to filter list items instead of map list items in the generate children settings, there are no options available...but maybe I am doing it incorrectly?

    • @teknesis7339
      @teknesis7339  7 місяців тому +1

      Use visibility control on your parent widget in your listview. Set conditional visibility to only display documents that meet the boolean condition as needed.

    • @travl4457
      @travl4457 7 місяців тому

      @@teknesis7339 thx had to make another container but it worked

  • @Caden_Burleson
    @Caden_Burleson Рік тому

    @7:58 I get "Current variable is not valid"...

    • @teknesis7339
      @teknesis7339  Рік тому

      It's possible due to FF updates since this video was made, there may be new null checks in play that need to be addressed

    • @RodrigoMiranda-d8e
      @RodrigoMiranda-d8e 10 місяців тому

      the same for me, do you know what it is?@@teknesis7339

  • @BikalNeupane-m8c
    @BikalNeupane-m8c 9 місяців тому

    Sir if I have 100 datas and need to show 10 collection in each page view and in next page of page view I will show another 10 collection of data. Can I achieve this with generate dynamic children? How can I make it such that next page view will show other 10 data from same table but not the ones in previous page and so on for 10 pages? Do I need to do create 10 pages and do It manually or is there some other efficient way to do that?

  • @citywomanng9420
    @citywomanng9420 Рік тому

    Thank you so much. This was really helpful

  • @AlexMusatkin
    @AlexMusatkin Рік тому

    How do you test infinite scroll in List view in Run/TEst modes?

    • @teknesis7339
      @teknesis7339  Рік тому

      You just turn inf on in the list and then enter test mode...

  • @ketz7261
    @ketz7261 Рік тому

    Do you have tutorial for movies app to view a videos in different resolution?

  • @ezenniachinedu8823
    @ezenniachinedu8823 Рік тому

    Please I want my tabbar to generate dynamically and also the tabbar page contents. so basically, if a user adds a particular document to a collection, a tab is automatically created for it and the tab page is populated accordingly. Thank you

    • @teknesis7339
      @teknesis7339  Рік тому

      You'll need custom code

    • @ezenniachinedu8823
      @ezenniachinedu8823 Рік тому

      @@teknesis7339 thank you

    • @teknesis7339
      @teknesis7339  Рік тому

      Or conversely, yoy could mimick a tab bar by creating the tabs with containers and text and use pageview as the swipeable container, using page state to keep track of the current pageview index to update the container tabs accordingly.
      You could then generate both the pageview and container tabs dynamically, giving the impression its a tab view widget

  • @elijahmurray
    @elijahmurray Рік тому

    Very helpful. Thanks!

  • @Cesarkzz
    @Cesarkzz Рік тому

    ¿Is it possible to upload a csv file to a subcollection?

    • @teknesis7339
      @teknesis7339  Рік тому

      I’m not sure. I haven’t tried that

  • @jwolpert
    @jwolpert 10 місяців тому

    Outstanding!

  • @JOCV1
    @JOCV1 8 місяців тому

    Thank you so much!

  • @ChristopherDuMont-w8w
    @ChristopherDuMont-w8w Рік тому

    Any chance to order your results?

  • @infinixbolt5851
    @infinixbolt5851 Рік тому

    Mine is showing an endless loading icon in that list following the tutorial

    • @teknesis7339
      @teknesis7339  Рік тому

      Do you have any data in the field your referencing? If there’s no data, it won’t load anything

    • @infinixbolt5851
      @infinixbolt5851 Рік тому

      @@teknesis7339 yes, there's data

    • @teknesis7339
      @teknesis7339  Рік тому

      Are your rules deployed correctly? You’ll just have to go through your app and troubleshoot until you find the Issue and can fix it. I can show you how to implement a solution but everyone’s app and app structure is different, so it’s important to be able to troubleshoot your own issues.

    • @infinixbolt5851
      @infinixbolt5851 Рік тому

      What's the rule supposed to be set to?? You think it's the app's fault or the solution just doesn't work?

    • @teknesis7339
      @teknesis7339  Рік тому

      I’m confident the solution works, as I use it frequently throughout my apps. So, there’s likely a misconfiguration on your end

  • @maliktangopremiere
    @maliktangopremiere Рік тому

    Thanks

  • @ochoonce9882
    @ochoonce9882 Рік тому

    thanks, a lot!

  • @DeSofSistemas
    @DeSofSistemas Рік тому

    Excelente!!!

  • @jeanpierreunis
    @jeanpierreunis 11 місяців тому

    thanks !

  • @MyGoldenCleaners
    @MyGoldenCleaners Рік тому

    Holy been looking for someone to help me do this.. 10likees