Example Generated Type Workflow
The following example illustrates the relationship between a GraphQL schema and generated TypeScript types.
Schema to TypeScript
type User {
id: ID!
name: String!
email: String!
}💡 The schema type describes the complete API object, while the operation type represents only the fields selected by a particular query.