@@ -80,15 +80,15 @@ var episodeEnum = new GraphQLEnumType({
80
80
values : {
81
81
NEWHOPE : {
82
82
value : 4 ,
83
- description : 'Released in 1977.'
83
+ description : 'Released in 1977.' ,
84
84
} ,
85
85
EMPIRE : {
86
86
value : 5 ,
87
- description : 'Released in 1980.'
87
+ description : 'Released in 1980.' ,
88
88
} ,
89
89
JEDI : {
90
90
value : 6 ,
91
- description : 'Released in 1983.'
91
+ description : 'Released in 1983.' ,
92
92
} ,
93
93
}
94
94
} ) ;
@@ -114,7 +114,7 @@ var characterInterface = new GraphQLInterfaceType({
114
114
} ,
115
115
name : {
116
116
type : GraphQLString ,
117
- description : 'The name of the character.'
117
+ description : 'The name of the character.' ,
118
118
} ,
119
119
friends : {
120
120
type : new GraphQLList ( characterInterface ) ,
@@ -123,8 +123,8 @@ var characterInterface = new GraphQLInterfaceType({
123
123
} ,
124
124
appearsIn : {
125
125
type : new GraphQLList ( episodeEnum ) ,
126
- description : 'Which movies they appear in.'
127
- }
126
+ description : 'Which movies they appear in.' ,
127
+ } ,
128
128
} ) ,
129
129
resolveType : ( obj ) => {
130
130
if ( starWarsData . Humans [ obj . id ] !== undefined ) {
@@ -168,11 +168,11 @@ var humanType = new GraphQLObjectType({
168
168
} ,
169
169
appearsIn : {
170
170
type : new GraphQLList ( episodeEnum ) ,
171
- description : 'Which movies they appear in.'
171
+ description : 'Which movies they appear in.' ,
172
172
} ,
173
173
homePlanet : {
174
174
type : GraphQLString ,
175
- description : 'The home planet of the human, or null if unknown.'
175
+ description : 'The home planet of the human, or null if unknown.' ,
176
176
} ,
177
177
} ) ,
178
178
interfaces : [ characterInterface ]
@@ -200,7 +200,7 @@ var droidType = new GraphQLObjectType({
200
200
} ,
201
201
name : {
202
202
type : GraphQLString ,
203
- description : 'The name of the droid.'
203
+ description : 'The name of the droid.' ,
204
204
} ,
205
205
friends : {
206
206
type : new GraphQLList ( characterInterface ) ,
@@ -210,11 +210,11 @@ var droidType = new GraphQLObjectType({
210
210
} ,
211
211
appearsIn : {
212
212
type : new GraphQLList ( episodeEnum ) ,
213
- description : 'Which movies they appear in.'
213
+ description : 'Which movies they appear in.' ,
214
214
} ,
215
215
primaryFunction : {
216
216
type : GraphQLString ,
217
- description : 'The primary function of the droid.'
217
+ description : 'The primary function of the droid.' ,
218
218
} ,
219
219
} ) ,
220
220
interfaces : [ characterInterface ]
@@ -244,12 +244,12 @@ var queryType = new GraphQLObjectType({
244
244
human : {
245
245
type : humanType ,
246
246
args : { id : { name : 'id' , type : new GraphQLNonNull ( GraphQLString ) } } ,
247
- resolve : ( root , { id} ) => starWarsData . Humans [ id ]
247
+ resolve : ( root , { id} ) => starWarsData . Humans [ id ] ,
248
248
} ,
249
249
droid : {
250
250
type : droidType ,
251
251
args : { id : { name : 'id' , type : new GraphQLNonNull ( GraphQLString ) } } ,
252
- resolve : ( root , { id} ) => starWarsData . Droids [ id ]
252
+ resolve : ( root , { id} ) => starWarsData . Droids [ id ] ,
253
253
} ,
254
254
} )
255
255
} ) ;
0 commit comments