Procedures
Understanding procedures - the building blocks of oRPC business logic
Introduction
In oRPC, a procedure consists of two main parts:
- Contract: Defines the route, input, and output specifications
- Implementation: Contains middleware and business logic handler
The contract part can be separated using the Contract-First approach, allowing for better code organization and team collaboration.
Anatomy of a Procedure
Here's a comprehensive example of an oRPC procedure: