Skip to content

Commit f3a9eef

Browse files
sdlingcf-merge-on-green[bot]Takashi Matsuo
authored
chore: add note about preference of stream() to get() (GoogleCloudPlatform#3972)
* Add note about CollectionRef get deprecation. * Update note. Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
1 parent 1cb0963 commit f3a9eef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

firestore/cloud-client/snippets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def get_custom_class():
244244
def get_simple_query():
245245
db = firestore.Client()
246246
# [START get_simple_query]
247+
# Note: Use of CollectionRef stream() is prefered to get()
247248
docs = db.collection(u'cities').where(u'capital', u'==', True).stream()
248249

249250
for doc in docs:

0 commit comments

Comments
 (0)