Installation
Get the Aggregate component set up in your Convex project in just a few steps.Prerequisites
You’ll need an existing Convex project. If you don’t have one yet:Create a new Convex project
Install the Component
Configure the component
Create or update
convex/convex.config.ts in your project and register the aggregate component:convex/convex.config.ts
The
convex.config.ts file should be in your convex/ folder, not at the project root.Using Multiple Aggregates
If you need to aggregate multiple tables or use different sorting strategies, register the component multiple times with unique names:convex/convex.config.ts
TableAggregate objects:
Verify Installation
To verify the component is installed correctly, check your Convex dashboard athttps://dashboard.convex.dev. You should see the aggregate component listed under your project’s components.
Next Steps
Quickstart
Build your first aggregate in minutes
API Reference
Explore all available methods and options