What problem does it solve?
Populating a Convex database with initial or test data is error-prone when done manually, and re-running seed scripts can create duplicates or schema mismatches. This Skill provides a repeatable, schema-safe workflow for seeding tables.
Core Features & Use Cases
- Fixture Seeding via internalMutation: Write a re-runnable internal mutation that inserts sample rows and execute it with
npx convex run.
- Bulk Import: Shape data to match the schema validators and load it with
npx convex import.
- Idempotent Design: Use clear-then-insert or upsert patterns so re-running seeds is safe, then verify row counts.
- Use Case: When setting up a new Convex deployment for staging, run the seed mutation to populate tables with fixture data, then confirm row counts match expectations before handing off to QA.
Quick Start
Seed my Convex database with sample fixture data using an idempotent internal mutation and verify the row counts.