joinTyped
Description
joinTyped
is a method that applies typesafe select to a query.
Signature
joinTyped(
selection: KeyProxyCallback<Entity>,
alias?: string
): SelectQueryBuilder<Entity>
Arguments
- selection: KeyProxyCallback<Entity>: The callback which selects fields of entity.
- alias?: string: Alias for the selection.
Usage
// same as `query.leftJoin('user.subscriptions', 'subscriptions')`
query.leftJoinTyped(user => user.subscriptions, 'subscriptions')