onlySpecifiedKeys() — drizzle-orm Function Reference
Architecture documentation for the onlySpecifiedKeys() function in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 5b37c583_4b51_6483_c764_098bfb14a603["onlySpecifiedKeys()"] b6483f8f_39d9_6c02_34b8_9a3df7d428eb["utils.ts"] 5b37c583_4b51_6483_c764_098bfb14a603 -->|defined in| b6483f8f_39d9_6c02_34b8_9a3df7d428eb 2a85cab2_0338_353c_a5f7_46964a1b85f9["expectSchemaShape()"] 2a85cab2_0338_353c_a5f7_46964a1b85f9 -->|calls| 5b37c583_4b51_6483_c764_098bfb14a603 style 5b37c583_4b51_6483_c764_098bfb14a603 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-valibot/tests/utils.ts lines 4–6
function onlySpecifiedKeys(obj: Record<string, any>, keys: string[]) {
return Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does onlySpecifiedKeys() do?
onlySpecifiedKeys() is a function in the drizzle-orm codebase, defined in drizzle-valibot/tests/utils.ts.
Where is onlySpecifiedKeys() defined?
onlySpecifiedKeys() is defined in drizzle-valibot/tests/utils.ts at line 4.
What calls onlySpecifiedKeys()?
onlySpecifiedKeys() is called by 1 function(s): expectSchemaShape.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free