We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fa149 commit a56a8aaCopy full SHA for a56a8aa
packages/firestore/src/index/firestore_index_value_writer.ts
@@ -174,11 +174,10 @@ export class FirestoreIndexValueWriter {
174
): void {
175
this.writeValueTypeLabel(encoder, INDEX_TYPE_REFERENCE);
176
const path = DocumentKey.fromName(referenceValue).path;
177
- for (let i = 0; i < path.length; ++i) {
178
- const segment = path.get(i);
+ path.forEach(segment => {
179
this.writeValueTypeLabel(encoder, INDEX_TYPE_REFERENCE_SEGMENT);
180
this.writeUnlabeledIndexString(segment, encoder);
181
- }
+ });
182
}
183
184
private writeValueTypeLabel(
0 commit comments