Skip to main content

applyOrder

Description

applyOrder is a method that applies order to a query.

Signature

applyOrder(
orderBy: OrderParam<Entity>,
orderOptions?: ApplyOrderOptions
): SelectQueryBuilder<Entity>

Arguments

Usage

query.applyOrder({ field: 'name', direction: 'asc', nulls: 'last' }, { useDoubleQuotes: true })