Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Commit 228c533

Browse filesBrowse files
samtsterntheacodes
authored andcommitted
Remove CreateIfMissingOption (GoogleCloudPlatform#1767)
1 parent 18494f7 commit 228c533
Copy full SHA for 228c533

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
+1-1Lines 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

Copy file name to clipboardExpand all lines: firestore/cloud-client/snippets.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.