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
No description
3 Replies
kbemaster
kbemasterOP11mo ago
No description
kbemaster
kbemasterOP11mo ago
No description
kbemaster
kbemasterOP11mo ago
No description
Want results from more Discord servers?
Add your server