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

Extend for explicit results type #13

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

omiz
Copy link
Contributor

@omiz omiz commented May 23, 2022

No description provided.

this is because for values like Int64 passing an array to an IN expression is not allowed and requires variadic parameter
This is to allow chaining on the result as an example if a limit is set to one this would allow for chaining on the result's first item as follows:
```
let notes = try managedObjectContext
.fetch(where: (\Note.text).contains("Hello, World!"))
.sorted(by: \.creationDate, .descending)
.entityResults()
.first
```
@omiz omiz requested a review from ftchirou as a code owner May 23, 2022 09:03
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

Successfully merging this pull request may close these issues.

None yet

1 participant