I’m still working on my songwriting app. I’ve added another realm, Writers. Writers has a many to many relationship with Songs. I want to populate a tableview with a list of songs a particular writer has contributed to.
I’m crashing with ‘Invalid predicate’, reason: ‘Key paths that include an array property must use aggregate operations’" on the line
coWritenSongs = realm.objects(Song.self).filter(“writers.name = %@”, writerItem.name)
I know that aggregate functions are sum and so forth but I don’t understand why I am getting this error. Am I just going about getting the data I need in the wrong way?