Open History to see the last commit
Type Alias: OrderByCallback()<TContext>#
type OrderByCallback<TContext> = (refs) => any;
Defined in: packages/db/src/query/builder/types.ts:410
OrderByCallback - Type for orderBy clause callback functions
Similar to WhereCallback, these receive refs for all available tables and should return expressions that will be used for sorting.
Example: (refs) => refs.users.createdAt
Type Parameters#
TContext#
TContext extends Context
Parameters#
refs#
RefsForContext<TContext>
Returns#
any