v8.0.0-rc.11-dev.21: feat(orm): prepare aggregate and grouped queries (#30309)
- Prisma 近 90 天出现 89 次
- Prisma 近 90 天第 89 次发版
- 上一次:同一天稍早 · v8.0.0-rc.11-dev.20: Add documented PSL attribute signature help (#30312)
发生了什么
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…
摘要按规则整理自下方来源原文