@@ -150,75 +150,97 @@ type Mutation {
150150 createPlanet (input : PlanetInput ! ): Planet
151151 updatePlanet (id : ID ! , input : PlanetInput ! ): Planet
152152 deletePlanet (id : ID ! ): Boolean
153- }
154-
155- # Input types for mutations# Input types for mutations
156-
157- input CharacterInput {input CharacterInput {
158-
159- name : String ! name : String !
160-
161- characterType : String ! characterType : String !
162-
163- appearsIn : [String ] appearsIn : [String ]
164-
165- height : Float height : Float
166-
167- mass : Float mass : Float
168-
169- hairColor : String hairColor : String
170-
171- skinColor : String skinColor : String
172-
173- eyeColor : String eyeColor : String
174-
175- birthYear : String birthYear : String
176-
177- primaryFunction : String primaryFunction : String
178-
179- homePlanetId : ID homePlanetId : ID
180-
181- }}
182-
183-
184-
185- input FilmInput {input FilmInput {
186-
187- title : String ! title : String !
188-
189- episodeId : Int ! episodeId : Int !
190-
191- openingCrawl : String ! openingCrawl : String !
192-
193- director : String ! director : String !
194-
195- producer : String ! producer : String !
196-
197- releaseDate : String ! releaseDate : String !
198153
199- }}
154+ createSpecies (input : SpeciesInput ! ): Species
155+ updateSpecies (id : ID ! , input : SpeciesInput ! ): Species
156+ deleteSpecies (id : ID ! ): Boolean
200157
158+ createStarship (input : StarshipInput ! ): Starship
159+ updateStarship (id : ID ! , input : StarshipInput ! ): Starship
160+ deleteStarship (id : ID ! ): Boolean
201161
162+ createVehicle (input : VehicleInput ! ): Vehicle
163+ updateVehicle (id : ID ! , input : VehicleInput ! ): Vehicle
164+ deleteVehicle (id : ID ! ): Boolean
165+ }
202166
203- input PlanetInput {input PlanetInput {
204-
205- name : String ! name : String !
206-
207- diameter : String diameter : String
208-
209- rotationPeriod : String rotationPeriod : String
210-
211- orbitalPeriod : String orbitalPeriod : String
167+ # Input types for mutations
212168
213- gravity : String gravity : String
169+ input CharacterInput {
170+ name : String !
171+ characterType : String !
172+ appearsIn : [String ]
173+ height : Float
174+ mass : Float
175+ hairColor : String
176+ skinColor : String
177+ eyeColor : String
178+ birthYear : String
179+ primaryFunction : String
180+ homePlanetId : ID
181+ }
214182
215- population : String population : String
183+ input FilmInput {
184+ title : String !
185+ episodeId : Int !
186+ openingCrawl : String !
187+ director : String !
188+ producer : String !
189+ releaseDate : String !
190+ }
216191
217- climate : String climate : String
192+ input PlanetInput {
193+ name : String !
194+ diameter : String
195+ rotationPeriod : String
196+ orbitalPeriod : String
197+ gravity : String
198+ population : String
199+ climate : String
200+ terrain : String
201+ surfaceWater : String
202+ }
218203
219- terrain : String terrain : String
204+ input SpeciesInput {
205+ name : String !
206+ classification : String
207+ designation : String
208+ averageHeight : String
209+ skinColors : String
210+ hairColors : String
211+ eyeColors : String
212+ averageLifespan : String
213+ homeworld : String
214+ language : String
215+ }
220216
221- surfaceWater : String surfaceWater : String
217+ input StarshipInput {
218+ name : String !
219+ model : String
220+ starshipClass : String
221+ manufacturer : String
222+ costInCredits : String
223+ length : String
224+ crew : String
225+ passengers : String
226+ maxAtmospheringSpeed : String
227+ hyperdriveRating : String
228+ MGLT : String
229+ cargoCapacity : String
230+ consumables : String
231+ }
222232
223- }}
233+ input VehicleInput {
234+ name : String !
235+ model : String
236+ vehicleClass : String
237+ manufacturer : String
238+ costInCredits : String
239+ length : String
240+ crew : String
241+ passengers : String
242+ maxAtmospheringSpeed : String
243+ cargoCapacity : String
244+ consumables : String
245+ }
224246
0 commit comments