JetBrains / JetBrains/Exposed

Constraining Eager Loads

Open
#651 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
9.3k
Forks
798
Avg merge
4d 2h
Merged PRs (30d)
26

Description

Is there a way to put constraint on Eagerly Loaded relationships?

I would really appreatice if there was a some way to do this as it is in Laravel/Eloquent:

```PHP
$users = App\User::with(['posts' => function ($query) {
$query->where('title', 'like', '%first%');
}])->get();
```
https://laravel.com/docs/5.8/eloquent-relationships#constraining-eager-loads

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.