GET() — astro Function Reference
Architecture documentation for the GET() function in collections.json.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f6c4ae22_9d8b_10d3_f7c0_78ee38ae88c0["GET()"] fcaa652d_da5e_ba42_a2ab_7fa3a8b92844["collections.json.js"] f6c4ae22_9d8b_10d3_f7c0_78ee38ae88c0 -->|defined in| fcaa652d_da5e_ba42_a2ab_7fa3a8b92844 style f6c4ae22_9d8b_10d3_f7c0_78ee38ae88c0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/content-collections/src/pages/collections.json.js lines 4–14
export async function GET() {
const withSchemaConfig = await getCollection('with-schema-config');
const withCustomSlugs = await getCollection('with-custom-slugs');
const withUnionSchema = await getCollection('with-union-schema');
const withSymlinkedContent = await getCollection('with-symlinked-content');
const withSymlinkedData = await getCollection('with-symlinked-data');
return new Response(
devalue.stringify({ withSchemaConfig, withCustomSlugs, withUnionSchema, withSymlinkedContent, withSymlinkedData }),
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does GET() do?
GET() is a function in the astro codebase, defined in packages/astro/test/fixtures/content-collections/src/pages/collections.json.js.
Where is GET() defined?
GET() is defined in packages/astro/test/fixtures/content-collections/src/pages/collections.json.js at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free