OrderTerm
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.
Extends
Section titled “Extends”Refs<R>
Type Parameters
Section titled “Type Parameters”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.
Properties
Section titled “Properties”[refs]?
Section titled “[refs]?”
readonlyoptional[refs]:R
Defined in: src/query/expression.ts:53
Inherited from
Section titled “Inherited from”Refs.[refs]
direction
Section titled “direction”
readonlydirection:SortDirection
Defined in: src/query/order.ts:32
readonlykind:"order"
Defined in: src/query/order.ts:28
readonlyname:string
Defined in: src/query/order.ts:29
readonlytype:IndexableTypeTag|undefined
Defined in: src/query/order.ts:31
The type sorted on, or undefined until the schema the query reads through supplies it.