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.
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
Looking forward to more! Enjoy your much-deserved vacation!
Great video , i like your contents😃😃
Excellent tutorial and well explained, the last step was tripping me up. Cheers! You have a new sub
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.
Yo, Im having currently the same problem, have you found a solution to it?
@NeonMachine-7 same. Have you found the solution?
@@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.
thank you so much for making this video I wasn't able to figure out how to display those damn info
Thank you so much for this tutorial!! You've saved me
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.
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.
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).
@@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
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 !
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 !!!
This a very beneficial tutorial. Thank you
Very powerful, great tut.
Which costs more eventually? Getting all the documents info in one query or getting each document’s info one query at a time?
thanks i was looking for this but i am just worried that it may take to many calls to the database !!!
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?
Thank you! Enjoy your vacation, sincerely
Hi, nice vid! Would you mind creating a video where you can explain what's the difference between Doc Reference and Query Collection?
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!
Join my Discord to get help
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.
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?
Use visibility control on your parent widget in your listview. Set conditional visibility to only display documents that meet the boolean condition as needed.
@@teknesis7339 thx had to make another container but it worked
@7:58 I get "Current variable is not valid"...
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
the same for me, do you know what it is?@@teknesis7339
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?
Thank you so much. This was really helpful
How do you test infinite scroll in List view in Run/TEst modes?
You just turn inf on in the list and then enter test mode...
Do you have tutorial for movies app to view a videos in different resolution?
No, I don’t.
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
You'll need custom code
@@teknesis7339 thank you
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
Very helpful. Thanks!
¿Is it possible to upload a csv file to a subcollection?
I’m not sure. I haven’t tried that
Outstanding!
Thank you so much!
Any chance to order your results?
Not easily within FF alone
Mine is showing an endless loading icon in that list following the tutorial
Do you have any data in the field your referencing? If there’s no data, it won’t load anything
@@teknesis7339 yes, there's data
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.
What's the rule supposed to be set to?? You think it's the app's fault or the solution just doesn't work?
I’m confident the solution works, as I use it frequently throughout my apps. So, there’s likely a misconfiguration on your end
Thanks
thanks, a lot!
Excelente!!!
thanks !
Holy been looking for someone to help me do this.. 10likees