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
  58156211_fe73_8cc9_482a_a8b6fa766d63["bookAuthorsConfig()"]
  e73e7aa8_539d_67fb_83b0_a02ae9e08de6["tables-rel.ts"]
  58156211_fe73_8cc9_482a_a8b6fa766d63 -->|defined in| e73e7aa8_539d_67fb_83b0_a02ae9e08de6
  style 58156211_fe73_8cc9_482a_a8b6fa766d63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/geldb/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/geldb/tables-rel.ts.
Where is bookAuthorsConfig() defined?
bookAuthorsConfig() is defined in drizzle-orm/type-tests/geldb/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