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 66a0582 commit 3eab552Copy full SHA for 3eab552
firestore/main/index.js
@@ -739,7 +739,7 @@ function listenDiffs(db, done) {
739
// [START listen_diffs]
740
var observer = db.collection('cities').where('state', '==', 'CA')
741
.onSnapshot(querySnapshot => {
742
- querySnapshot.docChanges.forEach(change => {
+ querySnapshot.docChanges().forEach(change => {
743
if (change.type === 'added') {
744
console.log('New city: ', change.doc.data());
745
}
0 commit comments