diff --git a/firestore.indexes.json b/firestore.indexes.json index 49c7af5..4e84252 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -70,6 +70,20 @@ } ] }, + { + "collectionGroup": "notifications", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "data.clientId", + "order": "ASCENDING" + }, + { + "fieldPath": "timestamp", + "order": "DESCENDING" + } + ] + }, { "collectionGroup": "notifications", "queryScope": "COLLECTION", @@ -117,9 +131,23 @@ { "fieldPath": "timestamp", "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "notifications", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "data.ownerId", + "order": "ASCENDING" }, { - "fieldPath": "__name__", + "fieldPath": "type", + "order": "ASCENDING" + }, + { + "fieldPath": "timestamp", "order": "DESCENDING" } ] @@ -135,10 +163,6 @@ { "fieldPath": "timestamp", "order": "DESCENDING" - }, - { - "fieldPath": "__name__", - "order": "DESCENDING" } ] },