react-query-firebase / OrderByConstraint
Type Alias: OrderByConstraint<AppModelType>
ts
type OrderByConstraint<AppModelType> = object;Defined in: src/types/QueryConstraints.ts:7
Order by constraint
Type Parameters
AppModelType
AppModelType extends AppModel = AppModel
Properties
directionStr
ts
directionStr: "asc" | "desc";Defined in: src/types/QueryConstraints.ts:19
Direction of ordering: asc or desc
fieldPath
ts
fieldPath: keyof AppModelType;Defined in: src/types/QueryConstraints.ts:15
Field path to use for ordering
type
ts
type: "orderBy";Defined in: src/types/QueryConstraints.ts:11
Type of a constraint