How to get the type of a compound query? - Prisma