get() — astro Function Reference
Architecture documentation for the get() function in data-store.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 3b90745d_78ea_8543_7f62_501ddedc7a8d["get()"] ac7e948d_1024_ae45_2ea1_742b83aa21b5["ImmutableDataStore"] 3b90745d_78ea_8543_7f62_501ddedc7a8d -->|defined in| ac7e948d_1024_ae45_2ea1_742b83aa21b5 95a007eb_12c4_3a4d_3d17_33a2c145ee48["entries()"] 95a007eb_12c4_3a4d_3d17_33a2c145ee48 -->|calls| 3b90745d_78ea_8543_7f62_501ddedc7a8d a31fb3d7_f070_ed00_c9e0_28d2793a6777["values()"] a31fb3d7_f070_ed00_c9e0_28d2793a6777 -->|calls| 3b90745d_78ea_8543_7f62_501ddedc7a8d b91f0eb5_3cd9_b599_b891_de6b620c40e9["keys()"] b91f0eb5_3cd9_b599_b891_de6b620c40e9 -->|calls| 3b90745d_78ea_8543_7f62_501ddedc7a8d 1551fb1a_2da2_076e_a109_11b4fd0f31b9["has()"] 1551fb1a_2da2_076e_a109_11b4fd0f31b9 -->|calls| 3b90745d_78ea_8543_7f62_501ddedc7a8d style 3b90745d_78ea_8543_7f62_501ddedc7a8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/data-store.ts lines 51–53
get<T = DataEntry>(collectionName: string, key: string): T | undefined {
return this._collections.get(collectionName)?.get(String(key));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does get() do?
get() is a function in the astro codebase, defined in packages/astro/src/content/data-store.ts.
Where is get() defined?
get() is defined in packages/astro/src/content/data-store.ts at line 51.
What calls get()?
get() is called by 4 function(s): entries, has, keys, values.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free