I\'m using @graphql-codegen/typescript-operations to generate the types from .graphql files on my frontend. So as an example I may do the following
@graphql-codegen/typescript-operations
.graphql