Query tRPC the right way
If you use graphql, you can precisely query what you exactly need and avoid over fetching, so you can do something like this:
how would you do that in tRPC?
do you have to implement an interface like this?
and what is if you want to query related stuff, like the user and its pets and from the pets you just want the ids but in other cases the names and ids
how would you do that in tRPC?
do you have to implement an interface like this?
and what is if you want to query related stuff, like the user and its pets and from the pets you just want the ids but in other cases the names and ids