Home / File/ collection.json.js — astro Source File

collection.json.js — astro Source File

Architecture documentation for collection.json.js, a javascript file in the astro codebase. 2 imports, 0 dependents.

File javascript CoreAstro RoutingSystem 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  3777bbde_86b8_e99b_3a04_46c98535b1ba["collection.json.js"]
  48f80d01_e646_3924_78f6_a9d836644746["astro:content"]
  3777bbde_86b8_e99b_3a04_46c98535b1ba --> 48f80d01_e646_3924_78f6_a9d836644746
  ca52ff61_c81f_c2ca_81b6_5a678b65fd31["devalue"]
  3777bbde_86b8_e99b_3a04_46c98535b1ba --> ca52ff61_c81f_c2ca_81b6_5a678b65fd31
  style 3777bbde_86b8_e99b_3a04_46c98535b1ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { getCollection } from 'astro:content';
import { stringify } from 'devalue';

export async function GET() {
	const posts = await getCollection('blog');
	return new Response(stringify(posts));
}

Domain

Subdomains

Functions

Dependencies

  • astro:content
  • devalue

Frequently Asked Questions

What does collection.json.js do?
collection.json.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain, RoutingSystem subdomain.
What functions are defined in collection.json.js?
collection.json.js defines 1 function(s): GET.
What does collection.json.js depend on?
collection.json.js imports 2 module(s): astro:content, devalue.
Where is collection.json.js in the architecture?
collection.json.js is located at packages/integrations/markdoc/test/fixtures/content-collections/src/pages/collection.json.js (domain: CoreAstro, subdomain: RoutingSystem, directory: packages/integrations/markdoc/test/fixtures/content-collections/src/pages).

Analyze Your Own Codebase

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

Try Supermodel Free