Get all objects where optional exists in Realm Swift -


if have optional var in realm object, how instances array of instances var has not been set. instance, instances of person not have address? or do have address?

class person: object {     dynamic var address: address?     // more values } 

hi, maybe can use expression

var personwhoaddressnil = realm.objects(person.self).filter("address = nil") 

i can't try moment, let me know if it's helping :) see ya


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -