include method

Query<T> include(
  1. dynamic relations
)

---------- RELATIONS ----------

Implementation

Query<T> include(dynamic relations) {
  if (relations == null) return this;

  if (relations is String ||
      relations is Map ||
      relations is Iterable) {
    _relations.add(relations);
    return this;
  }

  throw Exception('Invalid include type');
}