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

Поділитися
Вставка
  • Опубліковано 5 кві 2023
  • 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.
  • Наука та технологія

КОМЕНТАРІ • 52

  • @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!

  • @peacemakernanakwesiotoo5315
    @peacemakernanakwesiotoo5315 20 днів тому

    Very powerful, great tut.

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

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

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

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

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

    This a very beneficial tutorial. Thank you

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

    Very helpful. Thanks!

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

    Thank you so much. This was really helpful

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

    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 !!!

  • @jwolpert
    @jwolpert 3 місяці тому

    Outstanding!

  • @sharoni3d
    @sharoni3d 2 місяці тому

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

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

    Thank you so much!

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

    Excelente!!!

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

    Thank you! Enjoy your vacation, sincerely

  • @raffaelyork
    @raffaelyork 4 місяці тому

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

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

    thanks, a lot!

  • @jeanpierreunis
    @jeanpierreunis 4 місяці тому

    thanks !

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

    Thanks

  • @MTGameMaker
    @MTGameMaker 2 місяці тому

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

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

    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.

  • @travl4457
    @travl4457 22 дні тому

    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  22 дні тому +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 21 день тому

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

  • @meroces1
    @meroces1 3 місяці тому

    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!

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

    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.

  • @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

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

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

  • @user-qr6dl3yp4t
    @user-qr6dl3yp4t 2 місяці тому

    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?

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

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

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

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

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

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

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

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

  • @user-ew8ys1ib7u
    @user-ew8ys1ib7u 10 місяців тому

    Any chance to order your results?

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

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

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

    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  9 місяців тому

      You'll need custom code

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

      @@teknesis7339 thank you

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

      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

  • @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

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

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

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

      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-yy9nz
      @RodrigoMiranda-yy9nz 3 місяці тому

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