Is it possible to create a generic router to pass a type on?
Hi, I was wondering if it is possible to create a generic router to pass a type which is expected to return
1 Reply
Create a factory function. I've done this for CRUD entities which need all the same behaviour over a similar base type
In my case I'm doing this with a codegen'd client over a rest API, and so I had to come up with some selector methods to get the endpoint. For an ORM you can probably just pass the Entity class itself