Skip to content

Commit cbb8582

Browse files
glumbjoehan
andauthored
Fix __name__ field beeing stripped from index listing (#8761)
Fixes #8758 Co-authored-by: Joe Hanley <joehanley@google.com>
1 parent 20b5212 commit cbb8582

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)