Type for select with relations?
Is it possible to infer select with relations?
Currently im using:
5 Replies
I would also like to know how to achieve this. Thanks for the workaround btw.
I think this is a good way. We were discussing a way to provide some kind of helper but it's we haven't arrived to a solution that's easy and helpful yet
Another way of doing it is with the
ReturnType
Utility typeHow would you go with the ReturnType utility? I can't find anything about it in the docs
It's not in the docs, it's just typescript stuff
Documentation - Utility Types
Types which are globally included in TypeScript