Skip to content

Commit a417cb0

Browse files
author
shawnlikescode
committed
docs: use alias instead of aliasedTable for self-joins
1 parent cbe0ca0 commit a417cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/joins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Lets say you need to fetch users with their parents:
204204
```typescript copy
205205
import { user } from "./schema";
206206

207-
const parent = aliasedTable(user, "parent")
207+
const parent = alias(user, "parent");
208208
const result = db
209209
.select()
210210
.from(user)

0 commit comments

Comments
 (0)