GraphQL
GraphQL is a powerful way to expose an API for frontend use. We generally prefer tRPC over GraphQL for frontend-backend integration but still consider GraphQL a valid alternative in cases where tRPC is not a good match.
When tRPC is not a good match we generally prefer GraphQL over REST because it increases flexibility and agility, depending on the context (e.g. external APIs may still require REST for API clients' needs).
Beware of GraphQL misuse however. A mix of GraphQL and REST is also a viable solution.
GraphQL is a powerful way to expose an API for frontend use. We prefer it over REST APIs in most cases because it often increases flexibility and agility, depending on the context (e.g. external APIs may need to use REST for API clients' needs).
Beware of GraphQL misuse however. A mix of GraphQL and REST is also a viable solution.