There was a question about loading data from Firebase Firestore Cloud. There is a simple query:
val firestore = Firebase.firestore
suspend fun getDocuments(timestamp: Timestamp): List<Entity> =
firestore
.collection("collection")
.orderBy("modified_at", Query.Direction.ASCENDING)
.whereGreaterThan("modified_at", timestamp)
.get()
.await()
.toObjects(Entity::class.java)
What happens if something goes wrong while uploading documents? Will I receive incomplete data or an error?
In what order are the documents loaded? Does orderBy affect the load order?