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

commentsConfig() — drizzle-orm Function Reference

Architecture documentation for the commentsConfig() function in tables-rel.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  b2c273de_1bf4_4fe4_75d8_917db50638cd["commentsConfig()"]
  c97e2b55_026c_83f4_2bf3_25f61840b9cd["tables-rel.ts"]
  b2c273de_1bf4_4fe4_75d8_917db50638cd -->|defined in| c97e2b55_026c_83f4_2bf3_25f61840b9cd
  style b2c273de_1bf4_4fe4_75d8_917db50638cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/geldb/tables-rel.ts lines 42–45

export const commentsConfig = relations(comments, ({ one }) => ({
	post: one(posts, { fields: [comments.postId], references: [posts.id] }),
	author: one(users, { fields: [comments.authorId], references: [users.id] }),
}));

Domain

Subdomains

Frequently Asked Questions

What does commentsConfig() do?
commentsConfig() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/geldb/tables-rel.ts.
Where is commentsConfig() defined?
commentsConfig() is defined in drizzle-orm/type-tests/geldb/tables-rel.ts at line 42.

Analyze Your Own Codebase

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

Try Supermodel Free