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
Post a Comment