Home / Function/ blogCollection.schema() — astro Function Reference

blogCollection.schema() — astro Function Reference

Architecture documentation for the blogCollection.schema() function in content.config.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  78fe7269_1f7b_aa91_949d_6c5f91be39f4["blogCollection.schema()"]
  88081521_301f_6a8e_8620_7d3f34f66aec["content.config.ts"]
  78fe7269_1f7b_aa91_949d_6c5f91be39f4 -->|defined in| 88081521_301f_6a8e_8620_7d3f34f66aec
  style 78fe7269_1f7b_aa91_949d_6c5f91be39f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/astro-assets-prefix/src/content.config.ts lines 7–10

  schema: ({image}) => z.object({
    title: z.string(),
    cover: image(),
  }),

Subdomains

Frequently Asked Questions

What does blogCollection.schema() do?
blogCollection.schema() is a function in the astro codebase, defined in packages/astro/test/fixtures/astro-assets-prefix/src/content.config.ts.
Where is blogCollection.schema() defined?
blogCollection.schema() is defined in packages/astro/test/fixtures/astro-assets-prefix/src/content.config.ts at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free