Skip to content

asc(attributeName, attributeType): OrderByAttribute

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

Helper function to create an ascending 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 ascAttribute = asc("name", "string")