Skip to content
masterclass Buddy

T3 Stack · Method

.input

tRPC lets you define typed backend procedures in TypeScript and call them from a frontend without API code generation. Routers group procedures, while validators and inferred types connect client calls to server behavior.

Last updated

Syntax

createTRPCRouter({ procedureName: publicProcedure.input(validator).query(({ ctx, input }) => result) })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Zod
  • @tanstack/react-query
  • createTRPCRouter
  • publicProcedure
  • createInnerTRPCContext
  • createTRPCContext
  • AppRouter
  • Next.js API handler

Source: tRPC • Create T3 App. Checked 2026-11-03.