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 8fc57b4f_1d43_aa3f_3999_c8c4e501220c["bookAuthorsConfig()"] b1dda328_eebf_52f2_97d5_00501c61feeb["tables-rel.ts"] 8fc57b4f_1d43_aa3f_3999_c8c4e501220c -->|defined in| b1dda328_eebf_52f2_97d5_00501c61feeb style 8fc57b4f_1d43_aa3f_3999_c8c4e501220c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/mysql/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
Defined In
Source
Frequently Asked Questions
What does bookAuthorsConfig() do?
bookAuthorsConfig() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/mysql/tables-rel.ts.
Where is bookAuthorsConfig() defined?
bookAuthorsConfig() is defined in drizzle-orm/type-tests/mysql/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