Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/relations-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ const db = drizzle(process.env.DB_URL, { relations: { ...relations, ...part } })
<Callout type='warning'>
There are a few rules you would need to follow to make sure it `defineRelationsParts` works as expected

**Rule 1**: If you specify reltions with parts, when passing it to drizzle db function you would need to specify it in the right order(main relations goes first)
**Rule 1**: If you specify relations with parts, when passing it to drizzle db function you would need to specify it in the right order(main relations goes first)
```ts
// ✅
const db = drizzle(process.env.DB_URL, { relations: { ...relations, ...part } })
Expand Down