Closed Guid75 closed 1 month ago
Works if you simplify it.
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.
Ok, thank you very much, I can live with some little repetitions
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?