Builder interface passed to _apply callbacks in join options.

Supports a subset of query operations that can be analyzed and applied to related record queries:

  • filterWhere / filter - add WHERE conditions
  • without - exclude fields from results
  • limit - cap number of related records
  • orderBy / asc / desc - sort related records
interface JoinApplyBuilder {
    asc(field: string): JoinApplyBuilder;
    desc(field: string): JoinApplyBuilder;
    filter(literal: Record<string, unknown>): JoinApplyBuilder;
    filterWhere(literal: Record<string, unknown>): JoinApplyBuilder;
    limit(count: number): JoinApplyBuilder;
    orderBy(field: string, direction?: "ASC" | "DESC"): JoinApplyBuilder;
    without(fields: string | string[]): JoinApplyBuilder;
}

Methods