I am unable to filter results using this query in swift.
I got this error: ‘Invalid predicate’, reason: ‘Key paths that include a collection property must use aggregate operations’
items = realm.objects(Inspection.self).where {
$0.property.owners.fullName.contains(“substring”, options: [.diacriticInsensitive,.caseInsensitive])
}
I am unable to find away to get all property with owner full name containing ‘substring’.
Do you have an idea how to achieve this?
Thanks