include method

S include(
  1. Iterable<MssqlRelation<TRow, Object?>> relations(
    1. TFields fields
    )
)

Loads relations after the parent rows, merging same paths.

Conflicting filter, order, limit or strategy on one path is MssqlIncludeConflictException. Nested includes are recursive; a level is never skipped. Page sentinels must be dropped before this runs; see dropPageSentinel.

Implementation

S include(
  Iterable<MssqlRelation<TRow, Object?>> Function(TFields fields) relations,
) {
  final extra = List<MssqlRelation<TRow, Object?>>.of(relations(fields));
  return recreate(state, mergeIncludes<TRow>(included, extra));
}