Post

Replies

Boosts

Views

Activity

Reply to Cannot convert value of type to closure result type 'any StandardPredicateExpression<Bool>'
As read here, you cannot reference a model object inside of a Predicate. So if you wanted to filter for a User model, you could by using its id outside of the Predicate like such: let userId = uder.id #Predicate<Transaction>{ tran in tran.tranInitiator.id == userId }
Replies
Boosts
Views
Activity
Apr ’24