eb.fn.jsonAgg does but for JSONB.helpers/postgres/jsonArrayFrom, but that is functionally not the same because it creates a subquery..distinct() for example):jsonAgg function from the source code and that almost works, however it's not aware of the query context, and you can for example aggregate on a completely unrelated table, since it uses the entire DB type as first generic parameter (<DB extends MyDB, TB extends keyof DB....>Join the Discord to continue the conversation
First came Kysely, the type-safe query builder for TypeScript, then came people asking questions, then came the Discord server.Join if you like Kysely or have questions, or both.
1,992 Members
Join