Home / Function/ seed() — astro Function Reference

seed() — astro Function Reference

Architecture documentation for the seed() function in seed.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8d9e95c4_fc07_f6c6_9267_ac2df229a0e0["seed()"]
  48250f2e_bb33_03b7_2fc4_9dedb49db649["seed.ts"]
  8d9e95c4_fc07_f6c6_9267_ac2df229a0e0 -->|defined in| 48250f2e_bb33_03b7_2fc4_9dedb49db649
  style 8d9e95c4_fc07_f6c6_9267_ac2df229a0e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/e2e/fixtures/actions-react-19/db/seed.ts lines 4–15

export default async function seed() {
  await db.insert(Likes).values({
    postId: "first-post",
    likes: 10,
  });

  await db.insert(Comment).values({
    postId: "first-post",
    author: "Alice",
    body: "Great post!",
  });
}

Domain

Subdomains

Frequently Asked Questions

What does seed() do?
seed() is a function in the astro codebase, defined in packages/astro/e2e/fixtures/actions-react-19/db/seed.ts.
Where is seed() defined?
seed() is defined in packages/astro/e2e/fixtures/actions-react-19/db/seed.ts at line 4.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free