Skip to content

breeze-client / OrderByPath

Type Alias: OrderByPath<T> ​

OrderByPath<T> = Entity extends T ? string : RawPropertyPath<T> | `${RawPropertyPath<T>} desc` | `${RawPropertyPath<T>} asc`

Defined in: src/query/property-path.ts:165

A PropertyPath, optionally followed by desc or asc, for EntityQuery.orderBy. Plain string for an untyped query.

A comma-separated list of clauses is still accepted, it is just not checked: enumerating every combination of paths is not something to ask of a compiler. Pass an array instead to keep the checking.

Type Parameters ​

T ​

T

Released under the MIT License.