Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(特定のキーパスを使用して)関連するオブジェクトがないエンティティからすべてのオブジェクトをフェッチしたいのですが、countを使用することを考えていますが、これを実装する方法がわかりません。
1:1の関係である場合は、次の検索述語を試してください。
[NSPredicate predicateWithFormat:@"relationshipName = NULL"];
1:nの関係の場合:
[NSPredicate predicateWithFormat:@"relationshipName.@count == 0"]