Skip to main content

seed

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.

Zur Installation springen

Quellinformationen

Repository
get-convex/convex-backend-skill
Letzte Quellaktivität
7. Juli 2026 um 16:41
Erkannte Sprache von SKILL.md
Englisch
Sterne
6
Forks
8

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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 1. For fixtures: write an internalMutation that inserts sample rows; run it with `npx convex run`. 2. For bulk import: shape the data to the schema and use `npx convex import`. 3. Make seeding idempotent (clear-then-insert or upsert) so re-running is safe. 4. Verify row counts. ## Rules - Seed via internalMutation or convex import, matching validators. - Make seeding idempotent. - Never seed secrets/PII into a shared deployment.
Auf GitHub ansehen