Let's say I wanna check if there is a localized document in EN in my Firestore. I will try to read:
DocumentSnapshot englishDocument = _firestore.document('/books/000000/lang/en').get();
Then I check if the document exists. If it doesn't check whether the book exists in Spanish.
if (!englishDocument.exists) {
DocumentSnapshot spanishDocument = _firestore.document('/books/000000/lang/es').get();
}
Now 3 scenarios:
- The book is available in EN: I get billed for 1 read
- The book is NOT available in EN but it is in ES: Do I get billed for 1 or 2 reads?
- The book is NOT available in neither of the two languages: Do I get billed for 2 reads or does it count as 0 reads?