© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
3 replies
kbemaster

Guaranteed undefined for Nested Results? Type Mismatch in Query API

I have a question about fetching data using the query api and it is: shouldn't nested results be of type Result | undefined ?
in this case account is not guaranteed to be found and there is no type safety as when using a select
In my schema just account has userId, and then I declared in the relations that account has one user and user has one account
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

Mapping Query Builder Results to Nested Objects in Drizzle
Drizzle TeamDTDrizzle Team / help
15mo ago
How to raise nested fields in relational query results?
Drizzle TeamDTDrizzle Team / help
3y ago
nested query
Drizzle TeamDTDrizzle Team / help
3y ago
Help needed for Nested Query
Drizzle TeamDTDrizzle Team / help
2y ago