How To Get Type-Safe Frontend Queries Like GraphQL Without GraphQL Using Typescript
Fading of API
I previously wrote a post about the history of APIs:
A Brief History of API: RPC, REST, GraphQL, tRPC
I still believe that GraphQL is the most efficient solution for a big project with separate or multiple front-end and back-end teams. However, after my partner and I left our last company, it was mainly just the two of us working on the full-stack project. Therefore, we prefer to leverage the "integrated" APIs of full-stack frameworks like getServerSideProps
, loader
, and load
functions (I bet at least you know one of them 😄). When necessary, we will use tRPC as a complementary. The overall experience is quite neat as you almost forget about API design and implementation.