Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2288·realm-java

Ignored fields list for copyToRealmOrUpdate

Author: beeenderCreated Feb 16, 2016Updated Aug 5, 2024
LabelsT-EnhancementDesign-Required

User case from SO: http://stackoverflow.com/questions/35244823/realm-for-android-how-to-sync-server-data-to-realm-database

If one field is stored locally, it would be convenient to ignore the local field while updating the existing RealmObject.

API proposal:

public <E extends RealmObject> E copyToRealmOrUpdate(E object, String... ignoredFields)

Source: realm/realm-java

View original on GitHubView discussion on GitHub