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: