Skip to content

Commit 2db9258

Browse files
Merge pull request #541 from shawnlikescode/fix/docs-alias-selfjoin
docs: use alias instead of aliasedTable for self-joins
2 parents e0565cc + a417cb0 commit 2db9258

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
@@ -305,7 +305,7 @@ Lets say you need to fetch users with their parents:
305305
```typescript copy
306306
import { user } from "./schema";
307307

308-
const parent = aliasedTable(user, "parent")
308+
const parent = alias(user, "parent");
309309
const result = db
310310
.select()
311311
.from(user)

0 commit comments

Comments
 (0)