Converting a query to use TypedSQL - Prisma