-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update Entry #7
Comments
The idea is to delete and save again, but the delete is bugged, will create a pull request next week I guess |
#7 Make delete swift, callback to flutter
There really should be an upsert operation. |
@mattrltrent Is just a delete followed by an add |
@ivofernandes This isn't atomic though? Let's say you want to guarantee your existing key is either updated or left alone. With this current implementation, that seems impossible. This is because the delete could succeed, but saving a new value could fail. |
I guess for that you need to dive into iOS cloudkit documentation and see if there are other methods besides what this package is using? |
Yup, there seems to be a decided update method as documented here: https://developer.apple.com/documentation/cloudkitjs/cloudkit/recordsbatchbuilder/1628739-update |
How to update an entry?
The text was updated successfully, but these errors were encountered: