From ad6f86fc07a7267f8f9d1df8c219a3c429bd9706 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 20 Sep 2022 14:39:32 -0700 Subject: [PATCH] Add index for new comments query --- firestore.indexes.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/firestore.indexes.json b/firestore.indexes.json index bcee41d5..2b7ef839 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -100,6 +100,20 @@ } ] }, + { + "collectionGroup": "comments", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "userId", + "order": "ASCENDING" + }, + { + "fieldPath": "createdTime", + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "comments", "queryScope": "COLLECTION_GROUP",