-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to update only some properties of record? #57
Comments
Can you bring an example of what you want to achieve? |
Not sure why @NortromInsanlyDev did not supply one but I'll give it a go. struct myObject {
|
Imagine:
if you update only one property: and save it to the realm by
It will keep the old properties unchanged |
@arturdev
Given these data structures, say from my server I fetched an updated list of all of my parents' names and superPowers but didn't want to fetch all of the children and grandchildren because there was no modifications made to those objects. I'd like to have a way to update top-level properties of an array of objects and ignore the relations for those objects. your suggestion is that I have to first fetch the parent objects individually and update each individual property which is not very optimal. |
How can I update only some properties with keeping old other properties?
Seems like Realm.create(_ : value: update) is not implemented.
Thanks for this awesome repo.
The text was updated successfully, but these errors were encountered: