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

commentsConfig() — drizzle-orm Function Reference

Architecture documentation for the commentsConfig() function in neon-http-batch.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  eca8f47e_d07c_3ffb_b2bb_019cc4ad4ecd["commentsConfig()"]
  c7bc55e0_0d9e_c4da_8367_225284280736["neon-http-batch.ts"]
  eca8f47e_d07c_3ffb_b2bb_019cc4ad4ecd -->|defined in| c7bc55e0_0d9e_c4da_8367_225284280736
  style eca8f47e_d07c_3ffb_b2bb_019cc4ad4ecd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/pg/neon-http-batch.ts lines 78–88

export const commentsConfig = relations(commentsTable, ({ one, many }) => ({
	post: one(postsTable, {
		fields: [commentsTable.postId],
		references: [postsTable.id],
	}),
	author: one(usersTable, {
		fields: [commentsTable.creator],
		references: [usersTable.id],
	}),
	likes: many(commentLikesTable),
}));

Domain

Subdomains

Frequently Asked Questions

What does commentsConfig() do?
commentsConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/pg/neon-http-batch.ts.
Where is commentsConfig() defined?
commentsConfig() is defined in integration-tests/tests/pg/neon-http-batch.ts at line 78.

Analyze Your Own Codebase

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

Try Supermodel Free