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

bookAuthorsConfig() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/type-tests/pg/tables-rel.ts lines 60–63

export const bookAuthorsConfig = relations(bookAuthors, ({ one }) => ({
	book: one(books, { fields: [bookAuthors.bookId], references: [books.id] }),
	author: one(users, { fields: [bookAuthors.authorId], references: [users.id] }),
}));

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free