8000 Update README example to use non-deprecated 'query.get'. (#9235) · sukeesh/google-cloud-python@fe18948 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe18948

Browse files
authored
Update README example to use non-deprecated 'query.get'. (googleapis#9235)
1 parent f129701 commit fe18948

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

firestore/README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ Example Usage
102102
103103
# Then query for documents
104104
users_ref = db.collection(u'users')
105-
docs = users_ref.get()
106105
107-
for doc in docs:
106+
for doc in users_ref.stream():
108107
print(u'{} => {}'.format(doc.id, doc.to_dict()))
109108
110109
Next Steps

0 commit comments

Comments
 (0)
0