convex-aggregate
Installation
SKILL.md
Convex Aggregate — O(log n) Count, Sum, Rank & Pagination
@convex-dev/aggregate— Efficient aggregation via denormalized B-tree. O(log n) for count, sum, min, max, rank, offset access, and percentiles.
Installation & Setup
npm install @convex-dev/aggregate
// convex/convex.config.ts
import { defineApp } from "convex/server";
import aggregate from "@convex-dev/aggregate/convex.config.js";
const app = defineApp();
app.use(aggregate);
// Multiple aggregates:
// app.use(aggregate, { name: "byScore" });
Related skills