I have the following query in my Realm database
realm.objects(Event) .filter("ANY presentation.speakers.lastName CONTAINS [c]%@", searchTerm)
Unfortunately, it does not work, I get the following error
"Invalid predicate", reason: "Aggregate operations can only be used for RLMArray properties"
presentation is an optional object defined as in the Event class
public dynamic var presentation : Presentation?
speakers is a List<PresentationSpeakers> defined as in a presentation
public let speakers = List<PresentationSpeaker>()
I feel that ANY should work directly on the collection, but speakers not a direct property of Event .
What is wrong with my request and how can I implement it correctly?
source share