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
  5c853044_0299_2608_35f4_1bedfdbbf666["with()"]
  6445d9e1_77f2_40aa_77c4_9c61ce1b7aef["IndexBuilder"]
  5c853044_0299_2608_35f4_1bedfdbbf666 -->|defined in| 6445d9e1_77f2_40aa_77c4_9c61ce1b7aef
  style 5c853044_0299_2608_35f4_1bedfdbbf666 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/indexes.ts lines 223–226

	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/gel-core/indexes.ts.
Where is with() defined?
with() is defined in drizzle-orm/src/gel-core/indexes.ts at line 223.

Analyze Your Own Codebase

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

Try Supermodel Free