vpjm
Passing generic inside tRPC query
Hi, I hope you're doing well.
Server:
Nextjs front:
I would like to pass the type of my Prisma query (
{ include: { image: true } }
) to findManyUser, so users
has the expected type and not the default type provided by Prisma (without generics : DefaultArgs
).
Thanks for your help.
Have a great day/night!6 replies