forked from dotansimha/graphql-code-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.excludeQueryBeta.ts
More file actions
168 lines (138 loc) · 5.13 KB
/
types.excludeQueryBeta.ts
File metadata and controls
168 lines (138 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** The episodes in the Star Wars trilogy */
export type Episode =
/** Star Wars Episode V: The Empire Strikes Back, released in 1980. */
| 'EMPIRE'
/** Star Wars Episode VI: Return of the Jedi, released in 1983. */
| 'JEDI'
/** Star Wars Episode IV: A New Hope, released in 1977. */
| 'NEWHOPE';
export type CreateReviewForEpisodeMutationVariables = Exact<{
episode: Episode;
review: ReviewInput;
}>;
export type CreateReviewForEpisodeMutation = {
__typename?: 'Mutation';
createReview: { __typename?: 'Review'; stars: number; commentary: string | null } | null;
};
export type ExcludeQueryAlphaQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type ExcludeQueryAlphaQuery = {
__typename?: 'Query';
hero: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};
export type HeroAndFriendsNamesQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroAndFriendsNamesQuery = {
__typename?: 'Query';
hero:
| {
__typename?: 'Droid';
name: string;
friends: Array<{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null> | null;
}
| {
__typename?: 'Human';
name: string;
friends: Array<{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null> | null;
}
| null;
};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;
export type HeroAppearsInQuery = {
__typename?: 'Query';
hero:
| { __typename?: 'Droid'; name: string; appearsIn: Array<Episode | null> }
| { __typename?: 'Human'; name: string; appearsIn: Array<Episode | null> }
| null;
};
export type HeroDetailsQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroDetailsQuery = {
__typename?: 'Query';
hero:
| { __typename?: 'Droid'; primaryFunction: string | null; name: string }
| { __typename?: 'Human'; height: number | null; name: string }
| null;
};
type HeroDetails_Droid_Fragment = { __typename?: 'Droid'; primaryFunction: string | null; name: string };
type HeroDetails_Human_Fragment = { __typename?: 'Human'; height: number | null; name: string };
export type HeroDetailsFragment = HeroDetails_Droid_Fragment | HeroDetails_Human_Fragment;
export type HeroDetailsWithFragmentQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroDetailsWithFragmentQuery = {
__typename?: 'Query';
hero:
| { __typename?: 'Droid'; primaryFunction: string | null; name: string }
| { __typename?: 'Human'; height: number | null; name: string }
| null;
};
export type HeroNameQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroNameQuery = {
__typename?: 'Query';
hero: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};
export type HeroNameConditionalInclusionQueryVariables = Exact<{
episode?: Episode | null;
includeName: boolean;
}>;
export type HeroNameConditionalInclusionQuery = {
__typename?: 'Query';
hero: { __typename?: 'Droid'; name?: string } | { __typename?: 'Human'; name?: string } | null;
};
export type HeroNameConditionalExclusionQueryVariables = Exact<{
episode?: Episode | null;
skipName: boolean;
}>;
export type HeroNameConditionalExclusionQuery = {
__typename?: 'Query';
hero: { __typename?: 'Droid'; name?: string } | { __typename?: 'Human'; name?: string } | null;
};
export type HeroParentTypeDependentFieldQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroParentTypeDependentFieldQuery = {
__typename?: 'Query';
hero:
| {
__typename?: 'Droid';
name: string;
friends: Array<
{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; height: number | null; name: string } | null
> | null;
}
| {
__typename?: 'Human';
name: string;
friends: Array<
{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; height: number | null; name: string } | null
> | null;
}
| null;
};
export type HeroTypeDependentAliasedFieldQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroTypeDependentAliasedFieldQuery = {
__typename?: 'Query';
hero: { __typename?: 'Droid'; property: string | null } | { __typename?: 'Human'; property: string | null } | null;
};
export type HumanFieldsFragment = { __typename?: 'Human'; name: string; mass: number | null };
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;
export type HumanWithNullHeightQuery = {
__typename?: 'Query';
human: { __typename?: 'Human'; name: string; mass: number | null } | null;
};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;
export type TwoHeroesQuery = {
__typename?: 'Query';
r2: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
luke: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};