Skip to content

Commit 1946c12

Browse files
authored
Fix __name__ field beeing stripped from index listing
Fixes #8758
1 parent 843b6b4 commit 1946c12

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/firestore/api.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,7 @@ export class FirestoreApi {
183183
return [];
184184
}
185185

186-
return indexes.map((index: any): types.Index => {
187-
// Ignore any fields that point at the document ID, as those are implied
188-
// in all indexes.
189-
const fields = index.fields.filter((field: types.IndexField) => {
190-
return field.fieldPath !== "__name__";
191-
});
192-
193-
return {
194-
name: index.name,
195-
state: index.state,
196-
queryScope: index.queryScope,
197-
fields,
198-
};
199-
});
186+
return indexes;
200187
}
201188

202189
/**

0 commit comments

Comments
 (0)