Skip to content

egon-orm-workspace / egon-orm / rank

Function: rank() ​

ts
function rank(): WindowFunction<number>;

Defined in: core/src/query/advanced/windows.ts:268

rank(): the rank of the current row in its partition, with gaps after ties. Needs .over(…).

Returns ​

WindowFunction<number>

Example ​

ts
rank().over({ orderBy: [p.views.desc()] });