Skip to content

Defined in: src/query/order.ts:27

A sort: the attribute, the type it is read as, and the direction. Built by asc and desc, and passed to select(...).orderBy(...) or query(..., { orderBy }).

The node sorts the attribute as one type, so every key carries a type. A system attribute’s is fixed, and through a schema it comes from the column; otherwise the caller writes it.

  • Refs<R>

R extends AttributeRef = AttributeRef

The attribute the key names, as an AttributeRef — checked against the schema by select(...).from(schema).orderBy(...), as where checks filters.

readonly optional [refs]: R

Defined in: src/query/expression.ts:53

Refs.[refs]


readonly direction: SortDirection

Defined in: src/query/order.ts:32


readonly kind: "order"

Defined in: src/query/order.ts:28


readonly name: string

Defined in: src/query/order.ts:29


readonly type: IndexableTypeTag | undefined

Defined in: src/query/order.ts:31

The type sorted on, or undefined until the schema the query reads through supplies it.