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

with() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/pg-core/indexes.ts lines 215–218

	with(obj: Record<string, any>): this {
		this.config.with = obj;
		return this;
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free