Firestore Tutorial Part 16 – ARRAYS – Android Studio Tutorial
In part 16 of the Firestore tutorial, we will learn how to store, update and query arrays in Firestore. With the recent changes, it’s now possible to add and remove elements from an array with FieldValue arrayUnion and arrayRemove, and we can query for array members by adding whereArrayContains to a Query, where we pass the name of the field and the element we want to query for.
Cloud Firestore does not support Java arrays, so we have to map the array to a List.
Watch the whole playlist:
Code for this part:
https://gist.github.com/codinginflow/fa1668f20f94b4baa1391d1f987cb8c7
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflo…
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
https://discord.gg/TSnMvmc
📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
TikTok: https://www.tiktok.com/@codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: info@codinginflow.com
Views :34591
android studio