with_ method
Eager load relations: with_(['posts', 'posts.comments']).
Implementation
QueryBuilder<T> with_(List<String> relations) {
for (final r in relations) {
eagerLoads.putIfAbsent(r, () => null);
}
return this;
}
Eager load relations: with_(['posts', 'posts.comments']).
QueryBuilder<T> with_(List<String> relations) {
for (final r in relations) {
eagerLoads.putIfAbsent(r, () => null);
}
return this;
}