You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observable.changeset(from: dogs, keyPaths:["favoriteToy","age"]).subscribe(onNext:{ results, changes in
if let changes = changes {// it's an updateprint(results)print("deleted: \(changes.deleted)")print("inserted: \(changes.inserted)")print("updated: \(changes.updated)")}else{// it's the initial dataprint(results)}})
The text was updated successfully, but these errors were encountered:
I like this idea. I use keypaths a lot. Would prefer it there was KeyPath usage though other than strigs, if it's possible. I hope to look into this but if anyone wants to work on this, I will review any PRs.
Since Realm 10.12.0, function observe can receive keyPaths parameter, which can select object properties object or collection.
https://docs.mongodb.com/realm/sdk/ios/examples/react-to-changes/#register-a-key-path-change-listener
I want to write code with RxRealm like below 😍 :
The text was updated successfully, but these errors were encountered: