Home / Function/ where() — drizzle-orm Function Reference

where() — drizzle-orm Function Reference

Architecture documentation for the where() function in indexes.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  292389c9_5cc9_ecf0_8709_b82dca53c24b["where()"]
  5a25fdd1_f316_6702_af4d_9a37c66d3845["IndexBuilder"]
  292389c9_5cc9_ecf0_8709_b82dca53c24b -->|defined in| 5a25fdd1_f316_6702_af4d_9a37c66d3845
  style 292389c9_5cc9_ecf0_8709_b82dca53c24b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/indexes.ts lines 220–223

	where(condition: SQL): this {
		this.config.where = condition;
		return this;
	}

Domain

Subdomains

Frequently Asked Questions

What does where() do?
where() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/indexes.ts.
Where is where() defined?
where() is defined in drizzle-orm/src/pg-core/indexes.ts at line 220.

Analyze Your Own Codebase

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

Try Supermodel Free