Relative Content

Tag Archive for fluttergoogle-cloud-firestore

Why firestore create dynamic index for all userId

return firestore .collection(‘chatrooms’) .where(‘participants’, arrayContains: userId) .where(‘chatType’, isEqualTo: ‘friend’) .where(‘visibility.$userId.visible’, isEqualTo: true) .orderBy(‘lastMessageTime.$userId’, descending: true) .snapshots() and now its creating the composite index like this. participants Arrays chatType Ascending visibility.8YvAhlkrD6Qzcu3XgXTdJxInghF2.visible Ascending lastMessageTime.8YvAhlkrD6Qzcu3XgXTdJxInghF2 Descending __name__ Descending i want that this will not happen. flutter google-cloud-firestore 1

How to wait for a Firestore document to be created?

I am debugging a piece of code that creates a user in Firebase, and then waits for a document to be created in Firestore by our backend systems. As I scale the process to create more users, it times out and I discovered it is due to this code: