You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to write the following once you update to 1.4.0@omiz.
letpredicate:Predicate<Note>= \Note.group ==nil
If you store your predicate in a variable, you may need to explicitly provide the type (as in the example above) to help the compiler disambiguate between \Note.group == nil // => Predicate<Note> and \Note.group == nil // => Bool.
Is it possible to have a predicate for an optional one to Many relationship?
An example of what I'm trying to achieve is this
I want to get the objects without a relation
unfortunately that currently doesn't work since
NoteGroup
is not a primitive type so it can't be passed as a fetch where conditionThe text was updated successfully, but these errors were encountered: