menuItemIngredientRelations() — drizzle-orm Function Reference
Architecture documentation for the menuItemIngredientRelations() function in pg.schema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 6f8ddea6_7b0c_a6e2_6be2_22bbd80536f1["menuItemIngredientRelations()"] 6e66809b_2d53_90e9_685f_ad46ec0ffb9a["pg.schema.ts"] 6f8ddea6_7b0c_a6e2_6be2_22bbd80536f1 -->|defined in| 6e66809b_2d53_90e9_685f_ad46ec0ffb9a style 6f8ddea6_7b0c_a6e2_6be2_22bbd80536f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/relational/issues-schemas/wrong-mapping/pg.schema.ts lines 97–106
({ one }) => ({
menuItem: one(menuItems, {
fields: [menuItemIngredients.menuItemId],
references: [menuItems.id],
}),
ingredient: one(ingredients, {
fields: [menuItemIngredients.ingredientId],
references: [ingredients.id],
}),
}),
Domain
Subdomains
Source
Frequently Asked Questions
What does menuItemIngredientRelations() do?
menuItemIngredientRelations() is a function in the drizzle-orm codebase, defined in integration-tests/tests/relational/issues-schemas/wrong-mapping/pg.schema.ts.
Where is menuItemIngredientRelations() defined?
menuItemIngredientRelations() is defined in integration-tests/tests/relational/issues-schemas/wrong-mapping/pg.schema.ts at line 97.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free