withRelations abstract method

QueryBuilderInterface<T> withRelations(
  1. List relations
)

Eagerly loads relations for the query.

final users = await UserModel.q<UserModel>()
  .withRelations(['posts'])
  .get();

Implementation

QueryBuilderInterface<T> withRelations(List<dynamic> relations);