Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUBQUERY in NexusData #13

Closed
j4nos opened this issue Dec 9, 2016 · 0 comments
Closed

SUBQUERY in NexusData #13

j4nos opened this issue Dec 9, 2016 · 0 comments

Comments

@j4nos
Copy link

j4nos commented Dec 9, 2016

NexusData does have SUBQUERY language element from Core Data, like this:

let fr2: NSFetchRequest<Item> = Item.fetchRequest()
fr2.predicate = NSPredicate(format: "SUBQUERY(ratings, $r, ($r.userSetting.id = %@ AND $r.scale > 0)).@count = 0 AND SUBQUERY(ratings, $r, ($r.userSetting.id != %@ AND $r.scale > 0)).@count > 0", loggedInUserID!, loggedInUserID!)
@j4nos j4nos closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant