-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix support for subqueries using the query builder #2717
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a wording suggestion that @jmikola may want to improve further.
docs/query-builder.txt
Outdated
|
||
User::where('results', 'elemMatch', ['gte' => 80, 'lt' => 85])->get(); | ||
|
||
A sub-query builder can be to apply filter on documents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reads a little rough. Consider:
A sub-query builder can be to apply filter on documents. | |
A closure can be used to create more complex sub-queries. |
Ping @jmikola in case he has a better suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmikola any opinion on this wording?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objections. Sorry for the delayed response, as I wasn't monitoring mentions in this repo.
Fix #2700
Checklist