procedure input context
Is it possible to accesss context in trpc procedure input validation?
I have an aray of values in the trpc context and would like to make a procedure input schema to transform on those values to allow these as the input. Im using zod for input schema
1 Reply
You can use a middleware after the input call to consume both. Or just do it in the procedure