procedure

One callable server function in a tRPC router, declared as a query (read) or a mutation (write), with a validated input.

In more detail

Procedures are built from a base plus middleware, so a protectedProcedure adds an authentication check once. Every procedure built from it inherits the check.

Example

One technique has many procedures: a scheduled task can be created with schtasks, PowerShell or a raw API call.

Related terms

Taught in

References