I am working on a CloudKit backed app with a Users record type that has a \"following\" reference list attribute. I am trying to construct a query to get every user that is foll
Use CONTAINS operator to test list membership:
CKReference* recordToMatch = [[CKReference alloc] initWithRecordID:currentUserID action:CKReferenceActionNone];
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"following CONTAINS %@", recordToMatch];
If you want to query for more than 1 reference, then you need to use a compound predicate with AND predicate type for each reference in list.