|
| 1 | +export type Maybe<T> = T | null; |
| 2 | +/** All built-in and custom scalars, mapped to their actual values */ |
| 3 | +export type Scalars = { |
| 4 | + ID: string; |
| 5 | + String: string; |
| 6 | + Boolean: boolean; |
| 7 | + Int: number; |
| 8 | + Float: number; |
| 9 | +}; |
| 10 | + |
| 11 | +/** The episodes in the Star Wars trilogy */ |
| 12 | +export enum Episode { |
| 13 | + /** Star Wars Episode IV: A New Hope, released in 1977. */ |
| 14 | + Newhope = 'NEWHOPE', |
| 15 | + /** Star Wars Episode V: The Empire Strikes Back, released in 1980. */ |
| 16 | + Empire = 'EMPIRE', |
| 17 | + /** Star Wars Episode VI: Return of the Jedi, released in 1983. */ |
| 18 | + Jedi = 'JEDI', |
| 19 | +} |
| 20 | + |
| 21 | +/** Units of height */ |
| 22 | +export enum LengthUnit { |
| 23 | + /** The standard unit around the world */ |
| 24 | + Meter = 'METER', |
| 25 | + /** Primarily used in the United States */ |
| 26 | + Foot = 'FOOT', |
| 27 | +} |
| 28 | + |
| 29 | +export type CreateReviewForEpisodeMutationVariables = { |
| 30 | + episode: Episode; |
| 31 | + review: ReviewInput; |
| 32 | +}; |
| 33 | + |
| 34 | +export type CreateReviewForEpisodeMutation = { |
| 35 | + __typename?: 'Mutation'; |
| 36 | + createReview?: Maybe<{ __typename?: 'Review'; stars: number; commentary?: Maybe<string> }>; |
| 37 | +}; |
| 38 | + |
| 39 | +export type HeroAndFriendsNamesQueryVariables = { |
| 40 | + episode?: Maybe<Episode>; |
| 41 | +}; |
| 42 | + |
| 43 | +export type HeroAndFriendsNamesQuery = { |
| 44 | + __typename?: 'Query'; |
| 45 | + hero?: Maybe< |
| 46 | + | { |
| 47 | + __typename?: 'Human'; |
| 48 | + name: string; |
| 49 | + friends?: Maybe<Array<Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>>>; |
| 50 | + } |
| 51 | + | { |
| 52 | + __typename?: 'Droid'; |
| 53 | + name: string; |
| 54 | + friends?: Maybe<Array<Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>>>; |
| 55 | + } |
| 56 | + >; |
| 57 | +}; |
| 58 | + |
| 59 | +export type HeroAppearsInQueryVariables = {}; |
| 60 | + |
| 61 | +export type HeroAppearsInQuery = { |
| 62 | + __typename?: 'Query'; |
| 63 | + hero?: Maybe< |
| 64 | + | { __typename?: 'Human'; name: string; appearsIn: Array<Maybe<Episode>> } |
| 65 | + | { __typename?: 'Droid'; name: string; appearsIn: Array<Maybe<Episode>> } |
| 66 | + >; |
| 67 | +}; |
| 68 | + |
| 69 | +export type HeroDetailsQueryVariables = { |
| 70 | + episode?: Maybe<Episode>; |
| 71 | +}; |
| 72 | + |
| 73 | +export type HeroDetailsQuery = { |
| 74 | + __typename?: 'Query'; |
| 75 | + hero?: Maybe< |
| 76 | + | { __typename?: 'Human'; height?: Maybe<number>; name: string } |
| 77 | + | { __typename?: 'Droid'; primaryFunction?: Maybe<string>; name: string } |
| 78 | + >; |
| 79 | +}; |
| 80 | + |
| 81 | +type HeroDetails_Human_Fragment = { __typename?: 'Human'; height?: Maybe<number>; name: string }; |
| 82 | + |
| 83 | +type HeroDetails_Droid_Fragment = { __typename?: 'Droid'; primaryFunction?: Maybe<string>; name: string }; |
| 84 | + |
| 85 | +export type HeroDetailsFragment = HeroDetails_Human_Fragment | HeroDetails_Droid_Fragment; |
| 86 | + |
| 87 | +export type HeroDetailsWithFragmentQueryVariables = { |
| 88 | + episode?: Maybe<Episode>; |
| 89 | +}; |
| 90 | + |
| 91 | +export type HeroDetailsWithFragmentQuery = { |
| 92 | + __typename?: 'Query'; |
| 93 | + hero?: Maybe< |
| 94 | + ({ __typename?: 'Human' } & HeroDetails_Human_Fragment) | ({ __typename?: 'Droid' } & HeroDetails_Droid_Fragment) |
| 95 | + >; |
| 96 | +}; |
| 97 | + |
| 98 | +export type HeroNameQueryVariables = { |
| 99 | + episode?: Maybe<Episode>; |
| 100 | +}; |
| 101 | + |
| 102 | +export type HeroNameQuery = { |
| 103 | + __typename?: 'Query'; |
| 104 | + hero?: Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>; |
| 105 | +}; |
| 106 | + |
| 107 | +export type HeroNameConditionalInclusionQueryVariables = { |
| 108 | + episode?: Maybe<Episode>; |
| 109 | + includeName: Scalars['Boolean']; |
| 110 | +}; |
| 111 | + |
| 112 | +export type HeroNameConditionalInclusionQuery = { |
| 113 | + __typename?: 'Query'; |
| 114 | + hero?: Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>; |
| 115 | +}; |
| 116 | + |
| 117 | +export type HeroNameConditionalExclusionQueryVariables = { |
| 118 | + episode?: Maybe<Episode>; |
| 119 | + skipName: Scalars['Boolean']; |
| 120 | +}; |
| 121 | + |
| 122 | +export type HeroNameConditionalExclusionQuery = { |
| 123 | + __typename?: 'Query'; |
| 124 | + hero?: Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>; |
| 125 | +}; |
| 126 | + |
| 127 | +export type HeroParentTypeDependentFieldQueryVariables = { |
| 128 | + episode?: Maybe<Episode>; |
| 129 | +}; |
| 130 | + |
| 131 | +export type HeroParentTypeDependentFieldQuery = { |
| 132 | + __typename?: 'Query'; |
| 133 | + hero?: Maybe< |
| 134 | + | { |
| 135 | + __typename?: 'Human'; |
| 136 | + name: string; |
| 137 | + friends?: Maybe< |
| 138 | + Array< |
| 139 | + Maybe< |
| 140 | + { __typename?: 'Human'; height?: Maybe<number>; name: string } | { __typename?: 'Droid'; name: string } |
| 141 | + > |
| 142 | + > |
| 143 | + >; |
| 144 | + } |
| 145 | + | { |
| 146 | + __typename?: 'Droid'; |
| 147 | + name: string; |
| 148 | + friends?: Maybe< |
| 149 | + Array< |
| 150 | + Maybe< |
| 151 | + { __typename?: 'Human'; height?: Maybe<number>; name: string } | { __typename?: 'Droid'; name: string } |
| 152 | + > |
| 153 | + > |
| 154 | + >; |
| 155 | + } |
| 156 | + >; |
| 157 | +}; |
| 158 | + |
| 159 | +export type HeroTypeDependentAliasedFieldQueryVariables = { |
| 160 | + episode?: Maybe<Episode>; |
| 161 | +}; |
| 162 | + |
| 163 | +export type HeroTypeDependentAliasedFieldQuery = { |
| 164 | + __typename?: 'Query'; |
| 165 | + hero?: Maybe<{ __typename?: 'Human'; property?: Maybe<string> } | { __typename?: 'Droid'; property?: Maybe<string> }>; |
| 166 | +}; |
| 167 | + |
| 168 | +export type HumanFieldsFragment = { __typename?: 'Human'; name: string; mass?: Maybe<number> }; |
| 169 | + |
| 170 | +export type HumanWithNullHeightQueryVariables = {}; |
| 171 | + |
| 172 | +export type HumanWithNullHeightQuery = { |
| 173 | + __typename?: 'Query'; |
| 174 | + human?: Maybe<{ __typename?: 'Human' } & HumanFieldsFragment>; |
| 175 | +}; |
| 176 | + |
| 177 | +export type TwoHeroesQueryVariables = {}; |
| 178 | + |
| 179 | +export type TwoHeroesQuery = { |
| 180 | + __typename?: 'Query'; |
| 181 | + r2?: Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>; |
| 182 | + luke?: Maybe<{ __typename?: 'Human'; name: string } | { __typename?: 'Droid'; name: string }>; |
| 183 | +}; |
0 commit comments