Frontend app doesn't know anything about the schema that backend GraphQL API is using.
You can create type definitions for the GraphQL schema, but if the schema changes in the future, you have to remember to update our frontend as well; this means that our frontend's TypeScript types can easily get out of sync.
yarn add graphql yarn add --dev typescript @graphql-codegen/cli