Documentation
    Preparing search index...
    • Type Parameters

      • TAlias extends string

      Parameters

      Returns {
          as: {
              <TSelection extends ColumnsSelection>(
                  qb:
                      | TypedQueryBuilder<TSelection, unknown, unknown>
                      | ((qb: QueryBuilder) => TypedQueryBuilder<TSelection>),
              ): WithSubqueryWithSelection<TSelection, TAlias>;
              (
                  qb:
                      | TypedQueryBuilder<undefined, unknown, unknown>
                      | ((qb: QueryBuilder) => TypedQueryBuilder<undefined>),
              ): WithSubqueryWithoutSelection<TAlias>;
          };
      }

    • Type Parameters

      • TAlias extends string
      • TSelection extends ColumnsSelection

      Parameters

      Returns {
          as: (
              qb: SQL<unknown> | ((qb: QueryBuilder) => SQL),
          ) => WithSubqueryWithSelection<TSelection, TAlias>;
      }