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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -