© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•13mo ago•
8 replies
SpoderMan

Self join breaks return type

Same issue as helpIs it possible to make this query typesafe?

The return type of the query is
never[]
never[]
. If I remove the left join, things return to normal.

The query works as expected, the result is just
never[]
never[]
.
image.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Type issue when creating self join
Drizzle TeamDTDrizzle Team / help
3y ago
Self referencing column breaks table type in typescript
Drizzle TeamDTDrizzle Team / help
3y ago
Self-Join on a CTE
Drizzle TeamDTDrizzle Team / help
2y ago