export type UserFieldsFragment = { __typename?: 'User', id: string, username: string, role: Role };
**Expected behavior**
// Type of FindUserQuery.user should includes UserFieldsFragment !!!
export type FindUserQuery = { __typename?: 'Query', user?: UserFieldsFragment | null | undefined };
export type UserFieldsFragment = { __typename?: 'User', id: string, username: string, role: Role };
**Environment:**
You can reproduce on the official website live demo (https://www.graphql-code-generator.com/)
<img width="1450" alt="스크린샷 2022-01-27 오전 12 24 54" src="https://user-images.githubusercontent.com/22269850/151192541-dfa52fdf-8d09-4e31-b9e9-f2308f5a97cf.png">
Describe the bug Exported fragment type is not in query
To Reproduce
(However it's the same if you don't do this one)
export type UserFieldsFragment = { __typename?: 'User', id: string, username: string, role: Role };
// Type of FindUserQuery.user should includes UserFieldsFragment !!! export type FindUserQuery = { __typename?: 'Query', user?: UserFieldsFragment | null | undefined };
export type UserFieldsFragment = { __typename?: 'User', id: string, username: string, role: Role };