Skip to content

Commit 3eab552

Browse files
authored
Fix docChanges error
1 parent 66a0582 commit 3eab552

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
@@ -739,7 +739,7 @@ function listenDiffs(db, done) {
739739
// [START listen_diffs]
740740
var observer = db.collection('cities').where('state', '==', 'CA')
741741
.onSnapshot(querySnapshot => {
742-
querySnapshot.docChanges.forEach(change => {
742+
querySnapshot.docChanges().forEach(change => {
743743
if (change.type === 'added') {
744744
console.log('New city: ', change.doc.data());
745745
}

0 commit comments

Comments
 (0)