Flutter+Firebase: How to use Nested Collections in cloud firestore
ฝัง
- เผยแพร่เมื่อ 8 ก.ย. 2022
- In this video, you'll learn:-
1. Why use NestedCollections instead of arrays?
2. How to create a collection inside a document?
3. How to add items to a nested collection?
4. Fetch items from a nested collection and display them using a ListView?
5. How many levels of nesting are possible?
Source code: github.com/gitanjal/firebase_... - วิทยาศาสตร์และเทคโนโลยี
Bro thank you for what you're doing!
Thanks for commenting, stay connected.
Explained it nicely !! Thanks
Glad it was helpful! Stay connected.
Thanks man, After watching a lots of tutorial I was very disappointed by complex data, and documentation , But you made it very very simple❤, by my side you got, subscribe+bell, Likes, and multiple share in my community, keep doing it❤
Thank you very much for subscribing, liking, pressing the bell and for sharing . You made my day 🎉🎉. Stay connected.
Easy to understand 😄Well Explained
Glad you liked it. Stay connected.
Excellent Video on sub collection
Thank you, stay connected
Much needed Tutorial! Thanks for the video. May I know is there a previous video of your add post function?
Glad you like it!
You can find the other related videos in this playlist....
th-cam.com/play/PLorBban-4UBBlpDhG_bCLm2i-z_xTSP6v.html
Stay connected.
Amazing explanation
Glad you liked it
Very helpful thank you
Glad it was helpful! Stay connected.
Thank you for the video! It was very easy to follow and understand. May I know how can I allow the users to edit the comment?
Glad that you liked it.
To allow user to edit comments , first you will need to authenticate the users, then using a form allow the users to enter new data and finally update the corresponding data on the firestore database.
You may learn more from this video:
th-cam.com/video/Oc3gjKzTxCU/w-d-xo.html
Tutorial on Google authentication:
th-cam.com/video/VCrXSFqdsoA/w-d-xo.html
@@droidmonk4820 thank you so much! I will try it out~
You are welcome, feel free to comment in case you face any difficulty.
I will be creating a complete Flutter+Firebase project tutorial soon, so stay connected.
Sir on a firebase i have 5 column
ReviewCart
Id
YourReviewCart
Id
Data i want to retrieve
Mene bohot try kia nut data null a rha ap thora guide kr de mn kese data retrieve kro
This video should help you...
th-cam.com/video/XS5cVQ3-aDo/w-d-xo.html
Fields retrieve karneke waqt null check karo... if any field is missing in any document you may get null errors
Plz make video on how delete collection with sub collections
Do you want to delete a complete collection from the app itself?
According to the official documents--
"Deleting collections from the client is not recommended."
Let me know your use case, and I'll try to find the best solution for you.
@@droidmonk4820 i am waiting
FirebaseFirestore.instance.collection('mujarrabaat_e_tabib').doc(widget.docId).collection("index").doc(widget.documentId).snapshots();
thanks for your guidance.... your content so much better and easy to understand....
sir can you solve this query using stream builder???
You have to do something like ------
Stream streamData=FirebaseFirestore.instance.collection('mujarrabaat_e_tabib').doc(widget.docId).collection("index").doc(widget.documentId).snapshots();
....
...
StreamBuilder(
stream:streamData;
builder: (context,snapshot){
Map data=snapshot.data();
return ;
}
)
I hope this helps.