@@ -19,6 +19,29 @@ export type ColorInput = {
19
19
red : Scalars [ 'Int' ] ;
20
20
} ;
21
21
22
+ /** An autonomous mechanical character in the Star Wars universe */
23
+ export type Droid = Character & {
24
+ __typename ?: 'Droid' ;
25
+ /** The movies this droid appears in */
26
+ appearsIn : Array < Maybe < Episode > > ;
27
+ /** This droid's friends, or an empty list if they have none */
28
+ friends ?: Maybe < Array < Maybe < Character > > > ;
29
+ /** The friends of the droid exposed as a connection with edges */
30
+ friendsConnection : FriendsConnection ;
31
+ /** The ID of the droid */
32
+ id : Scalars [ 'ID' ] ;
33
+ /** What others call this droid */
34
+ name : Scalars [ 'String' ] ;
35
+ /** This droid's primary function */
36
+ primaryFunction ?: Maybe < Scalars [ 'String' ] > ;
37
+ } ;
38
+
39
+ /** An autonomous mechanical character in the Star Wars universe */
40
+ export type DroidFriendsConnectionArgs = {
41
+ after ?: InputMaybe < Scalars [ 'ID' ] > ;
42
+ first ?: InputMaybe < Scalars [ 'Int' ] > ;
43
+ } ;
44
+
22
45
/** The episodes in the Star Wars trilogy */
23
46
export enum Episode {
24
47
/** Star Wars Episode V: The Empire Strikes Back, released in 1980. */
@@ -29,6 +52,62 @@ export enum Episode {
29
52
Newhope = 'NEWHOPE' ,
30
53
}
31
54
55
+ /** A connection object for a character's friends */
56
+ export type FriendsConnection = {
57
+ __typename ?: 'FriendsConnection' ;
58
+ /** The edges for each of the character's friends. */
59
+ edges ?: Maybe < Array < Maybe < FriendsEdge > > > ;
60
+ /** A list of the friends, as a convenience when edges are not needed. */
61
+ friends ?: Maybe < Array < Maybe < Character > > > ;
62
+ /** Information for paginating this connection */
63
+ pageInfo : PageInfo ;
64
+ /** The total number of friends */
65
+ totalCount ?: Maybe < Scalars [ 'Int' ] > ;
66
+ } ;
67
+
68
+ /** An edge object for a character's friends */
69
+ export type FriendsEdge = {
70
+ __typename ?: 'FriendsEdge' ;
71
+ /** A cursor used for pagination */
72
+ cursor : Scalars [ 'ID' ] ;
73
+ /** The character represented by this friendship edge */
74
+ node ?: Maybe < Character > ;
75
+ } ;
76
+
77
+ /** A humanoid creature from the Star Wars universe */
78
+ export type Human = Character & {
79
+ __typename ?: 'Human' ;
80
+ /** The movies this human appears in */
81
+ appearsIn : Array < Maybe < Episode > > ;
82
+ /** This human's friends, or an empty list if they have none */
83
+ friends ?: Maybe < Array < Maybe < Character > > > ;
84
+ /** The friends of the human exposed as a connection with edges */
85
+ friendsConnection : FriendsConnection ;
86
+ /** Height in the preferred unit, default is meters */
87
+ height ?: Maybe < Scalars [ 'Float' ] > ;
88
+ /** The home planet of the human, or null if unknown */
89
+ homePlanet ?: Maybe < Scalars [ 'String' ] > ;
90
+ /** The ID of the human */
91
+ id : Scalars [ 'ID' ] ;
92
+ /** Mass in kilograms, or null if unknown */
93
+ mass ?: Maybe < Scalars [ 'Float' ] > ;
94
+ /** What this human calls themselves */
95
+ name : Scalars [ 'String' ] ;
96
+ /** A list of starships this person has piloted, or an empty list if none */
97
+ starships ?: Maybe < Array < Maybe < Starship > > > ;
98
+ } ;
99
+
100
+ /** A humanoid creature from the Star Wars universe */
101
+ export type HumanFriendsConnectionArgs = {
102
+ after ?: InputMaybe < Scalars [ 'ID' ] > ;
103
+ first ?: InputMaybe < Scalars [ 'Int' ] > ;
104
+ } ;
105
+
106
+ /** A humanoid creature from the Star Wars universe */
107
+ export type HumanHeightArgs = {
108
+ unit ?: InputMaybe < LengthUnit > ;
109
+ } ;
110
+
32
111
/** Units of height */
33
112
export enum LengthUnit {
34
113
/** Primarily used in the United States */
@@ -37,6 +116,82 @@ export enum LengthUnit {
37
116
Meter = 'METER' ,
38
117
}
39
118
119
+ /** The mutation type, represents all updates we can make to our data */
120
+ export type Mutation = {
121
+ __typename ?: 'Mutation' ;
122
+ createReview ?: Maybe < Review > ;
123
+ } ;
124
+
125
+ /** The mutation type, represents all updates we can make to our data */
126
+ export type MutationCreateReviewArgs = {
127
+ episode ?: InputMaybe < Episode > ;
128
+ review : ReviewInput ;
129
+ } ;
130
+
131
+ /** Information for paginating this connection */
132
+ export type PageInfo = {
133
+ __typename ?: 'PageInfo' ;
134
+ endCursor ?: Maybe < Scalars [ 'ID' ] > ;
135
+ hasNextPage : Scalars [ 'Boolean' ] ;
136
+ startCursor ?: Maybe < Scalars [ 'ID' ] > ;
137
+ } ;
138
+
139
+ /** The query type, represents all of the entry points into our object graph */
140
+ export type Query = {
141
+ __typename ?: 'Query' ;
142
+ character ?: Maybe < Character > ;
143
+ droid ?: Maybe < Droid > ;
144
+ hero ?: Maybe < Character > ;
145
+ human ?: Maybe < Human > ;
146
+ reviews ?: Maybe < Array < Maybe < Review > > > ;
147
+ search ?: Maybe < Array < Maybe < SearchResult > > > ;
148
+ starship ?: Maybe < Starship > ;
149
+ } ;
150
+
151
+ /** The query type, represents all of the entry points into our object graph */
152
+ export type QueryCharacterArgs = {
153
+ id : Scalars [ 'ID' ] ;
154
+ } ;
155
+
156
+ /** The query type, represents all of the entry points into our object graph */
157
+ export type QueryDroidArgs = {
158
+ id : Scalars [ 'ID' ] ;
159
+ } ;
160
+
161
+ /** The query type, represents all of the entry points into our object graph */
162
+ export type QueryHeroArgs = {
163
+ episode ?: InputMaybe < Episode > ;
164
+ } ;
165
+
166
+ /** The query type, represents all of the entry points into our object graph */
167
+ export type QueryHumanArgs = {
168
+ id : Scalars [ 'ID' ] ;
169
+ } ;
170
+
171
+ /** The query type, represents all of the entry points into our object graph */
172
+ export type QueryReviewsArgs = {
173
+ episode : Episode ;
174
+ } ;
175
+
176
+ /** The query type, represents all of the entry points into our object graph */
177
+ export type QuerySearchArgs = {
178
+ text ?: InputMaybe < Scalars [ 'String' ] > ;
179
+ } ;
180
+
181
+ /** The query type, represents all of the entry points into our object graph */
182
+ export type QueryStarshipArgs = {
183
+ id : Scalars [ 'ID' ] ;
184
+ } ;
185
+
186
+ /** Represents a review for a movie */
187
+ export type Review = {
188
+ __typename ?: 'Review' ;
189
+ /** Comment about the movie */
190
+ commentary ?: Maybe < Scalars [ 'String' ] > ;
191
+ /** The number of stars this review gave, 1-5 */
192
+ stars : Scalars [ 'Int' ] ;
193
+ } ;
194
+
40
195
/** The input object sent when someone is creating a new review */
41
196
export type ReviewInput = {
42
197
/** Comment about the movie, optional */
@@ -47,6 +202,20 @@ export type ReviewInput = {
47
202
stars : Scalars [ 'Int' ] ;
48
203
} ;
49
204
205
+ export type Starship = {
206
+ __typename ?: 'Starship' ;
207
+ /** The ID of the starship */
208
+ id : Scalars [ 'ID' ] ;
209
+ /** Length of the starship, along the longest axis */
210
+ length ?: Maybe < Scalars [ 'Float' ] > ;
211
+ /** The name of the starship */
212
+ name : Scalars [ 'String' ] ;
213
+ } ;
214
+
215
+ export type StarshipLengthArgs = {
216
+ unit ?: InputMaybe < LengthUnit > ;
217
+ } ;
218
+
50
219
export type CreateReviewForEpisodeMutationVariables = Exact < {
51
220
episode : Episode ;
52
221
review : ReviewInput ;
0 commit comments