Define columns that we can sort by.
Accepts a table, a view, or a CTE — getColumns resolves a table's columns and a view's or subquery's selectedFields alike, so anything with a typed column set can be ordered by.
getColumns
columns
selectedFields
Example:
orderBy?: DbOrderByCriterion< typeof myTable, "publishesAt" | "activatesAt" | "endsAt">[]; Copy
orderBy?: DbOrderByCriterion< typeof myTable, "publishesAt" | "activatesAt" | "endsAt">[];
dbOrderBy
Define columns that we can sort by.
Accepts a table, a view, or a CTE —
getColumnsresolves a table'scolumnsand a view's or subquery'sselectedFieldsalike, so anything with a typed column set can be ordered by.Example:
See
dbOrderBy