Skip to content

desc(attributeName, attributeType): OrderByAttribute

Defined in: src/query/queryBuilder.ts:41

Helper function to create a descending order by attribute

string

The name of the attribute to order by

The type of the attribute to order by (string or number)

"string" | "number"

OrderByAttribute

Input for orderBy method

const descAttribute = desc("name", "string")