Skip to main content
Module

x/typeorm/src/index.ts>UpdateQueryBuilder#orderBy

Forked from https://github.com/typeorm/typeorm
Latest
method UpdateQueryBuilder.prototype.orderBy
import { UpdateQueryBuilder } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Sets ORDER BY condition in the query builder. If you had previously ORDER BY expression defined, calling this function will override previously set ORDER BY conditions.

Calling order by without order set will remove all previously set order bys.

Sets ORDER BY condition in the query builder. If you had previously ORDER BY expression defined, calling this function will override previously set ORDER BY conditions.

Parameters

sort: string
optional
order: "ASC" | "DESC"
optional
nulls: "NULLS FIRST" | "NULLS LAST"

Sets ORDER BY condition in the query builder. If you had previously ORDER BY expression defined, calling this function will override previously set ORDER BY conditions.

Parameters

order: OrderByCondition