tRPCttRPC
Powered by
MugetsuM
tRPC•4y ago•
3 replies
Mugetsu

Frozen input param

Is it possible to define a parameter on input schema (zod) that will have a hardcoded/frozen value wich should not be changed?
So the value is like predefined in the schema but should be like not accessible via the client to modify?
Or shall I add it in the procedure or something
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

useUtils().setQueriesData should not take input as param.
flodlcFflodlc / ❓-help
2y ago
Query param in every client request
zerovbZzerovb / ❓-help
3y ago
Early return for certain input parameter for queryFn
BrainlaqBBrainlaq / ❓-help
12mo ago