@@ -80,15 +80,15 @@ var episodeEnum = new GraphQLEnumType({
8080 values : {
8181 NEWHOPE : {
8282 value : 4 ,
83- description : 'Released in 1977.'
83+ description : 'Released in 1977.' ,
8484 } ,
8585 EMPIRE : {
8686 value : 5 ,
87- description : 'Released in 1980.'
87+ description : 'Released in 1980.' ,
8888 } ,
8989 JEDI : {
9090 value : 6 ,
91- description : 'Released in 1983.'
91+ description : 'Released in 1983.' ,
9292 } ,
9393 }
9494} ) ;
@@ -114,7 +114,7 @@ var characterInterface = new GraphQLInterfaceType({
114114 } ,
115115 name : {
116116 type : GraphQLString ,
117- description : 'The name of the character.'
117+ description : 'The name of the character.' ,
118118 } ,
119119 friends : {
120120 type : new GraphQLList ( characterInterface ) ,
@@ -123,8 +123,8 @@ var characterInterface = new GraphQLInterfaceType({
123123 } ,
124124 appearsIn : {
125125 type : new GraphQLList ( episodeEnum ) ,
126- description : 'Which movies they appear in.'
127- }
126+ description : 'Which movies they appear in.' ,
127+ } ,
128128 } ) ,
129129 resolveType : ( obj ) => {
130130 if ( starWarsData . Humans [ obj . id ] !== undefined ) {
@@ -168,11 +168,11 @@ var humanType = new GraphQLObjectType({
168168 } ,
169169 appearsIn : {
170170 type : new GraphQLList ( episodeEnum ) ,
171- description : 'Which movies they appear in.'
171+ description : 'Which movies they appear in.' ,
172172 } ,
173173 homePlanet : {
174174 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.' ,
176176 } ,
177177 } ) ,
178178 interfaces : [ characterInterface ]
@@ -200,7 +200,7 @@ var droidType = new GraphQLObjectType({
200200 } ,
201201 name : {
202202 type : GraphQLString ,
203- description : 'The name of the droid.'
203+ description : 'The name of the droid.' ,
204204 } ,
205205 friends : {
206206 type : new GraphQLList ( characterInterface ) ,
@@ -210,11 +210,11 @@ var droidType = new GraphQLObjectType({
210210 } ,
211211 appearsIn : {
212212 type : new GraphQLList ( episodeEnum ) ,
213- description : 'Which movies they appear in.'
213+ description : 'Which movies they appear in.' ,
214214 } ,
215215 primaryFunction : {
216216 type : GraphQLString ,
217- description : 'The primary function of the droid.'
217+ description : 'The primary function of the droid.' ,
218218 } ,
219219 } ) ,
220220 interfaces : [ characterInterface ]
@@ -244,12 +244,12 @@ var queryType = new GraphQLObjectType({
244244 human : {
245245 type : humanType ,
246246 args : { id : { name : 'id' , type : new GraphQLNonNull ( GraphQLString ) } } ,
247- resolve : ( root , { id} ) => starWarsData . Humans [ id ]
247+ resolve : ( root , { id} ) => starWarsData . Humans [ id ] ,
248248 } ,
249249 droid : {
250250 type : droidType ,
251251 args : { id : { name : 'id' , type : new GraphQLNonNull ( GraphQLString ) } } ,
252- resolve : ( root , { id} ) => starWarsData . Droids [ id ]
252+ resolve : ( root , { id} ) => starWarsData . Droids [ id ] ,
253253 } ,
254254 } )
255255} ) ;
0 commit comments