with_ method

QueryBuilder<T> with_(
  1. List<String> relations
)

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;
}