safwan.rahmanS
tRPC3y ago
1 reply
safwan.rahman

Is it possible to access context in input?

Hi,
I have a validator that requires to get context of prisma in the input, Is it possible to get the context in the input? There are some fields that are required for some users, I would like to handle this in validator level using zod.
Was this page helpful?