Let's supose I have a collection containing several documents, each of them named as something like FIS01181, or INF01202 (three upper case letters followed by four digits). This collection may have perhaps a thousand of these docs, but for each user will only need 40 ou 50. So I though it would be an nice optimization if each access only downloaded just it needed.
I know I could loop through these 50 docs I needed and download them individually; I tried this but it got really slow. Perhaps downloading all of them at once would be faster, but again, a lot of waste of network traffic (besides the higher billing). The Firestore reference hints that there is a function for this named where, but I don't know if that is exactly what I'm looking for:
const q = query(collection(db, "cities"), where("capital", "==", true));
I want to have an array of document names, like let arrayOfDocs = ["FIS01181", "INF01202"]; and get all of them from Firebase at once. Is it possible?
Note: I am using version 9 of Firebase with Javascript.