Convex Fundamentals
We're going to walk through how Convex works, and along the way we'll explore a few general database concepts that you may or may not already be familiar with. Convex brings a few fundamental ideas together, and learning them and how they interoperate will provide a fairly comprehensive understanding of how data flows through Convex and how best to build your app with it.
Convex's basic ingredients
Convex is comprised of three primary ingredients:
- Storage: tables and documents that represent your application's data
- Functions: deterministic JavaScript/TypeScript functions that modify and query those tables and documents
- Client Libraries: code that runs inside your app to subscribe to query functions and request mutations
Let's walk through each.