SpoderMan
SpoderMan
DTDrizzle Team
Created by Shashank on 9/19/2024 in #help
Is it possible to make this query typesafe?
2 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
Awesome, thanks a ton. For anyone else who was using this the same way I was, I have a tip. I was taking the result of aliasedTable and passing it through to a function using a function signature like this: function withChildren<T extends users>(parent: T) alias returns a slightly different type. There might be a better way to get that type, but this appears to be working type UserAlias = ReturnType<typeof alias<typeof users, "parent">>; Then I changed the function signature to function withChildren<T extends UserAlias>(parent: T)
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
Interesting. Thank you! What's the TLDR of the difference between the 2?
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
I've created a full example, hopefully I'm just missing something https://drizzle.run/vgpyb731hdqu7u73og9crp63
9 replies
DTDrizzle Team
Created by SpoderMan on 2/3/2025 in #help
Self join breaks return type
No description
9 replies