v8.0.0-rc.11-dev.21: feat(orm): prepare aggregate and grouped queries (#30309)
- Prisma: 89 events in the last 90 days
- Prisma: 89th Release in the last 90 days
- Previous: earlier the same day · v8.0.0-rc.11-dev.20: Add documented PSL attribute signature help (#30312)
What happened
Linked issue Builds on #30260 and #30289 . At a glance From the public SQLite acceptance test, using its existing db and runtime : db.orm.Post.groupBy('userId') .having((h) => h.count().gte(p.minimum)) .orderBy((post) => post.userId.asc()) .limit(p.take) .prepared.aggregate((agg) => ({ total: agg.countBigInt(), views: agg.sum('views') })), ); await grouped.query(runtime, { minimum: 2, take: 1 }); // [{ userId: 1, to…
Summary assembled by rule from the sources below