Using GraphQL together with TypeScript can have huge advantages, as you can use your GraphQL schema to create TypeScript type definitions and even code that fetches data from the GraphQL server. This is incredibly powerful. Basically it means we can have TypeScript types that match our GraphQL types and operations. An important nuance is that TypeScript and GraphQL have a set of types. It might take a minute to understand, but these are different things, as GraphQL and TypeScript have a similar type system with slightly different nuances.
Tech Author, Speaker and Entrepreneur
Create your free account to unlock your custom reading experience.