kysely-org / kysely

A type-safe typescript SQL query builder
https://kysely.dev
MIT License
10.66k stars 271 forks source link

Add `order by` support in aggregate functions argument scope. #780

Open igalklebanov opened 11 months ago

igalklebanov commented 11 months ago

Hey 👋

Following #779, we might want to allow chaining .orderBy where .distinct is invocable in eb.fn.agg.

Example aggregate functions where order by can be used inside the argument scope:

trompx commented 5 months ago

Hi @igalklebanov, Had just the need for that feature. Any idea if this will be merged soon?