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
  c79f82f1_cb94_dd9f_a510_8b9d6e164bfd["blogCollection.schema()"]
  da5823eb_a575_ac3c_9426_6d937a81b6e8["content.config.ts"]
  c79f82f1_cb94_dd9f_a510_8b9d6e164bfd -->|defined in| da5823eb_a575_ac3c_9426_6d937a81b6e8
  style c79f82f1_cb94_dd9f_a510_8b9d6e164bfd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/astro-assets-dir/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-dir/src/content.config.ts.
Where is blogCollection.schema() defined?
blogCollection.schema() is defined in packages/astro/test/fixtures/astro-assets-dir/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