max() — drizzle-orm Function Reference
Architecture documentation for the max() function in aggregate.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD f2903efb_599e_aa6f_1e9c_946354c97cfd["max()"] ddea600c_c886_0da9_1354_46365d17b567["aggregate.ts"] f2903efb_599e_aa6f_1e9c_946354c97cfd -->|defined in| ddea600c_c886_0da9_1354_46365d17b567 932d6924_b2b0_6352_42f7_220855d521b7["mapWith()"] f2903efb_599e_aa6f_1e9c_946354c97cfd -->|calls| 932d6924_b2b0_6352_42f7_220855d521b7 style f2903efb_599e_aa6f_1e9c_946354c97cfd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sql/functions/aggregate.ts lines 113–115
export function max<T extends SQLWrapper>(expression: T): SQL<(T extends AnyColumn ? T['_']['data'] : string) | null> {
return sql`max(${expression})`.mapWith(is(expression, Column) ? expression : String) as any;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does max() do?
max() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sql/functions/aggregate.ts.
Where is max() defined?
max() is defined in drizzle-orm/src/sql/functions/aggregate.ts at line 113.
What does max() call?
max() calls 1 function(s): mapWith.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free