It works, but if I extend this by adding any other clauses, like an orderby or offset, the typing breaks. Unfortunately I'm not enough of a TS wizard to understand how to fix the generic. Any ideas?
Describe what you want I have a model on my project that fetching users from the database. Each time I need different set of fields and I would like to define a function with generics so only the e...