tRPCttRPC
Powered by
MugetsuM
tRPC•4y ago•
1 reply
Mugetsu

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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Procedure with generic input?
hagabakaHhagabaka / ❓-help
3y ago
Infer context from procedure after middleware
VinnieVVinnie / ❓-help
2y ago