Skip to content

Commit 7dec099

Browse files
petermilessamtstern
authored andcommitted
Fix typo in List Subcollections of a Document (#10)
On line 567, the argument 'colleciton' is passed as an argument into the forEach function. The argument should be 'collection', just a small typo. I've went ahead and fixed this typo.
1 parent 6d1e83d commit 7dec099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ function getCollections(db) {
564564
// [START get_collections]
565565
var sfRef = db.collection('cities').doc('SF');
566566
sfRef.getCollections().then(collections => {
567-
collections.forEach(colleciton => {
567+
collections.forEach(collection => {
568568
console.log('Found subcollection with id:', collection.id);
569569
});
570570
});

0 commit comments

Comments
 (0)