Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
41 replies
ippo

flexible tRPC - is it as flexible as GraphQL?

airbnb and graphql had the problem to have scalable APIs that can grow, are flexible and are backward compatible
graphQL solves this problem, so lets say we have something like this:
persons {
  id
  firstName
  lastName
  email
  pets {
    id
    name
  }
}

now I can grow add other relations to my persons, without breaking my code, so persons can have addresses, bank accounts, children, cars, bought products

how does tRPC grow that way
how does tRPC is telling you how to have flexible interface?
Was this page helpful?