-
Notifications
You must be signed in to change notification settings - Fork 1.7k
firestore.CreateIfMissingOption should be replaced #4111
Copy link
Copy link
Closed
Labels
api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.Resolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Metadata
Metadata
Assignees
Labels
api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.Resolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Paraphrased from @samtstern:
It's still possible to do
The other Firestore SDKs have removed this option and moved to an option on the
set()operation called,merge(). For example, in the Android SDK:The new semantics make it so that the
set()operation (andcreate()which some SDKs offer) is the only operation which can make a new document. Themerge()option means that the data will be deep merged into any existing document, rather than just obliterating and replacing.