diff --git a/firestore/google/cloud/firestore_v1beta1/query.py b/firestore/google/cloud/firestore_v1beta1/query.py index ebf2b061945c..89f23f05b590 100644 --- a/firestore/google/cloud/firestore_v1beta1/query.py +++ b/firestore/google/cloud/firestore_v1beta1/query.py @@ -753,8 +753,8 @@ def on_snapshot(self, callback): db = firestore.Client() query_ref = db.collection(u'users').where("user", "==", u'Ada') - def on_snapshot(query_snapshot): - for doc in query_snapshot.documents: + def on_snapshot(docs, changes, read_time): + for doc in docs: print(u'{} => {}'.format(doc.id, doc.to_dict())) # Watch this query