desc
desc(
attributeName,attributeType):OrderByAttribute
Defined in: src/query/queryBuilder.ts:41
Helper function to create a descending order by attribute
Parameters
Section titled “Parameters”attributeName
Section titled “attributeName”string
The name of the attribute to order by
attributeType
Section titled “attributeType”The type of the attribute to order by (string or number)
"string" | "number"
Returns
Section titled “Returns”Input for orderBy method
Example
Section titled “Example”const descAttribute = desc("name", "string")