Home / Function/ hasCollection() — astro Function Reference

hasCollection() — astro Function Reference

Architecture documentation for the hasCollection() function in data-store.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  55253886_f348_abb0_c589_11025f6f6a76["hasCollection()"]
  ac7e948d_1024_ae45_2ea1_742b83aa21b5["ImmutableDataStore"]
  55253886_f348_abb0_c589_11025f6f6a76 -->|defined in| ac7e948d_1024_ae45_2ea1_742b83aa21b5
  1551fb1a_2da2_076e_a109_11b4fd0f31b9["has()"]
  55253886_f348_abb0_c589_11025f6f6a76 -->|calls| 1551fb1a_2da2_076e_a109_11b4fd0f31b9
  style 55253886_f348_abb0_c589_11025f6f6a76 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/data-store.ts lines 78–80

	hasCollection(collectionName: string) {
		return this._collections.has(collectionName);
	}

Subdomains

Calls

Frequently Asked Questions

What does hasCollection() do?
hasCollection() is a function in the astro codebase, defined in packages/astro/src/content/data-store.ts.
Where is hasCollection() defined?
hasCollection() is defined in packages/astro/src/content/data-store.ts at line 78.
What does hasCollection() call?
hasCollection() calls 1 function(s): has.

Analyze Your Own Codebase

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

Try Supermodel Free