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

commentLikesConfig() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

integration-tests/tests/pg/neon-http-batch.ts lines 96–105

export const commentLikesConfig = relations(commentLikesTable, ({ one }) => ({
	comment: one(commentsTable, {
		fields: [commentLikesTable.commentId],
		references: [commentsTable.id],
	}),
	author: one(usersTable, {
		fields: [commentLikesTable.creator],
		references: [usersTable.id],
	}),
}));

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free