-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cloud_firestore] Not possible to merge set calls with Firestore transactions #1212
Comments
The issue at flutter/flutter#36950 has been closed and moved here. Future collaboration on this issue will be done here. |
Same issue here! Any ETA? |
Any updates on this? Also faced an issue. |
Same problem here!!! |
I'm sure that the Flutter team has an abundance of important issues to address, but supporting all basic CRUD operations for the SDK's supported backend seems fundamental. Is there a plan for this? |
Looks like support is available in the document reference but not the set of the transaction. Tracking it as high-priority. |
A dirty workaround for now would be to read the document contents and merge the data together inside of the set until this gets fixed - not ideal but until this gets fixed it's the only solution. |
@Ehesp Could that merging workaround be implemented on the backend using the |
Can the update operation be changed to support this case? Making it merge if existing, and creating if not present? |
This is being sorted as part of #2582 It'll also include |
Merging set calls using transactions is currently not possible in Flutter because we don't have a SetOptions class and parameter for the
set()
method.However, the docs stay otherwise:
Issue was also posted on StackOverflow: https://stackoverflow.com/questions/57202980/unable-to-merge-a-transaction-set-with-setoptions
Doctor
The text was updated successfully, but these errors were encountered: