You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brand new user of this fantastic library, I'm searching a way to write a generic function to handle the getById classic usecase, here is my naive approach:
But in general you shouldn't try to write generic code like this with Kysely. Kysely's types are extremely strict and it's hard to combine strict and generic. Your example was probably not a real use case, but you saved very little code by having that helper.
Brand new user of this fantastic library, I'm searching a way to write a generic function to handle the getById classic usecase, here is my naive approach:
Here is the playground link
I don't really get why I cannot pass the id parameter into the where clause :(
What did I miss?
The text was updated successfully, but these errors were encountered: