Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 228c533

Browse files
samtsterntheacodes
authored andcommitted
Remove CreateIfMissingOption (GoogleCloudPlatform#1767)
1 parent 18494f7 commit 228c533

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-firestore==0.29.0
1+
google-cloud-firestore==0.30.0

firestore/cloud-client/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def update_create_if_missing():
303303
# [START update_create_if_missing]
304304
city_ref = db.collection(u'cities').document(u'BJ')
305305

306-
city_ref.update({
306+
city_ref.set({
307307
u'capital': True
308-
}, firestore.CreateIfMissingOption(True))
308+
}, merge=True)
309309
# [END update_create_if_missing]
310310

311311

0 commit comments

Comments
 (0)