-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QueryBuilder
: add flat
keyword to first
method
This keyword already exists for the `all` method and it will likewise be useful for `first` when only a single quantity is projected. In that case, often the caller doesn't want a list as a return value but simply the projected quantity. Allowing to get this directly from the method call as opposed to manually dereferencing the first item from the returned list often makes for cleaner code.
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters