Home / Function/ keys() — astro Function Reference

keys() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b91f0eb5_3cd9_b599_b891_de6b620c40e9["keys()"]
  ac7e948d_1024_ae45_2ea1_742b83aa21b5["ImmutableDataStore"]
  b91f0eb5_3cd9_b599_b891_de6b620c40e9 -->|defined in| ac7e948d_1024_ae45_2ea1_742b83aa21b5
  3b90745d_78ea_8543_7f62_501ddedc7a8d["get()"]
  b91f0eb5_3cd9_b599_b891_de6b620c40e9 -->|calls| 3b90745d_78ea_8543_7f62_501ddedc7a8d
  style b91f0eb5_3cd9_b599_b891_de6b620c40e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/data-store.ts lines 65–68

	keys(collectionName: string): Array<string> {
		const collection = this._collections.get(collectionName) ?? new Map();
		return [...collection.keys()];
	}

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free