| name | seed |
| description | Seed the Convex database with starter/fixture data or import an existing dataset (CSV/JSON). TRIGGER when the user wants sample/seed data or to import a dataset into Convex. Idempotent, schema-matching. |
Seed / import data
Populate tables via an internalMutation seed function (re-runnable) or npx convex import, matching the schema.
Steps
- For fixtures: write an internalMutation that inserts sample rows; run it with
npx convex run.
- For bulk import: shape the data to the schema and use
npx convex import.
- Make seeding idempotent (clear-then-insert or upsert) so re-running is safe.
- Verify row counts.
Rules
- Seed via internalMutation or convex import, matching validators.
- Make seeding idempotent.
- Never seed secrets/PII into a shared deployment.