withFieldName() — drizzle-orm Function Reference
Architecture documentation for the withFieldName() function in relations.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 0ab4b259_5711_27c1_0ec7_58b25e6df3b8["withFieldName()"] 776c65da_a3c4_5133_217d_969e536f67b3["Many"] 0ab4b259_5711_27c1_0ec7_58b25e6df3b8 -->|defined in| 776c65da_a3c4_5133_217d_969e536f67b3 b120db63_918f_e3c3_8f88_36af2e4aad23["withFieldName()"] b120db63_918f_e3c3_8f88_36af2e4aad23 -->|calls| 0ab4b259_5711_27c1_0ec7_58b25e6df3b8 b120db63_918f_e3c3_8f88_36af2e4aad23["withFieldName()"] 0ab4b259_5711_27c1_0ec7_58b25e6df3b8 -->|calls| b120db63_918f_e3c3_8f88_36af2e4aad23 style 0ab4b259_5711_27c1_0ec7_58b25e6df3b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/relations.ts lines 113–121
withFieldName(fieldName: string): Many<TTableName> {
const relation = new Many(
this.sourceTable,
this.referencedTable,
this.config,
);
relation.fieldName = fieldName;
return relation;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does withFieldName() do?
withFieldName() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/relations.ts.
Where is withFieldName() defined?
withFieldName() is defined in drizzle-orm/src/relations.ts at line 113.
What does withFieldName() call?
withFieldName() calls 1 function(s): withFieldName.
What calls withFieldName()?
withFieldName() is called by 1 function(s): withFieldName.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free