Skip to content

Commit

Permalink
Update README example to use non-deprecated 'query.get'. (#9235)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Sep 18, 2019
1 parent f129701 commit fe18948
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions firestore/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ Example Usage
# Then query for documents
users_ref = db.collection(u'users')
docs = users_ref.get()
for doc in docs:
for doc in users_ref.stream():
print(u'{} => {}'.format(doc.id, doc.to_dict()))
Next Steps
Expand Down

0 comments on commit fe18948

Please sign in to comment.