@@ -10,7 +10,7 @@ let __Schema = try! GraphQLObjectType(
1010 " types " : GraphQLField (
1111 type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __Type) ) ) ,
1212 description: " A list of all types supported by this server. " ,
13- resolve: { schema, _, eventLoopGroup, _ in
13+ resolve: { schema, _, _ , eventLoopGroup, _ in
1414 guard let schema = schema as? GraphQLSchema else {
1515 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
1616 }
@@ -22,7 +22,7 @@ let __Schema = try! GraphQLObjectType(
2222 " queryType " : GraphQLField (
2323 type: GraphQLNonNull ( __Type) ,
2424 description: " The type that query operations will be rooted at. " ,
25- resolve: { schema, _, eventLoopGroup, _ in
25+ resolve: { schema, _, _ , eventLoopGroup, _ in
2626 guard let schema = schema as? GraphQLSchema else {
2727 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
2828 }
@@ -35,7 +35,7 @@ let __Schema = try! GraphQLObjectType(
3535 description:
3636 " If this server supports mutation, the type that " +
3737 " mutation operations will be rooted at. " ,
38- resolve: { schema, _, eventLoopGroup, _ in
38+ resolve: { schema, _, _ , eventLoopGroup, _ in
3939 guard let schema = schema as? GraphQLSchema else {
4040 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
4141 }
@@ -48,7 +48,7 @@ let __Schema = try! GraphQLObjectType(
4848 description:
4949 " If this server support subscription, the type that " +
5050 " subscription operations will be rooted at. " ,
51- resolve: { schema, _, eventLoopGroup, _ in
51+ resolve: { schema, _, _ , eventLoopGroup, _ in
5252 guard let schema = schema as? GraphQLSchema else {
5353 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
5454 }
@@ -59,7 +59,7 @@ let __Schema = try! GraphQLObjectType(
5959 " directives " : GraphQLField (
6060 type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __Directive) ) ) ,
6161 description: " A list of all directives supported by this server. " ,
62- resolve: { schema, _, eventLoopGroup, _ in
62+ resolve: { schema, _, _ , eventLoopGroup, _ in
6363 guard let schema = schema as? GraphQLSchema else {
6464 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
6565 }
@@ -87,7 +87,7 @@ let __Directive = try! GraphQLObjectType(
8787 ) ,
8888 " args " : GraphQLField (
8989 type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
90- resolve: { directive, _, eventLoopGroup, _ in
90+ resolve: { directive, _, _ , eventLoopGroup, _ in
9191 guard let directive = directive as? GraphQLDirective else {
9292 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
9393 }
@@ -100,7 +100,7 @@ let __Directive = try! GraphQLObjectType(
100100 " onOperation " : GraphQLField (
101101 type: GraphQLNonNull ( GraphQLBoolean) ,
102102 deprecationReason: " Use `locations`. " ,
103- resolve: { directive, _, eventLoopGroup, _ in
103+ resolve: { directive, _, _ , eventLoopGroup, _ in
104104 guard let d = directive as? GraphQLDirective else {
105105 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
106106 }
@@ -113,7 +113,7 @@ let __Directive = try! GraphQLObjectType(
113113 " onFragment " : GraphQLField (
114114 type: GraphQLNonNull ( GraphQLBoolean) ,
115115 deprecationReason: " Use `locations`. " ,
116- resolve: { directive, _, eventLoopGroup, _ in
116+ resolve: { directive, _, _ , eventLoopGroup, _ in
117117 guard let d = directive as? GraphQLDirective else {
118118 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
119119 }
@@ -126,7 +126,7 @@ let __Directive = try! GraphQLObjectType(
126126 " onField " : GraphQLField (
127127 type: GraphQLNonNull ( GraphQLBoolean) ,
128128 deprecationReason: " Use `locations`. " ,
129- resolve: { directive, _, eventLoopGroup, _ in
129+ resolve: { directive, _, _ , eventLoopGroup, _ in
130130 guard let d = directive as? GraphQLDirective else {
131131 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
132132 }
@@ -232,7 +232,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
232232 fields: [
233233 " kind " : GraphQLField (
234234 type: GraphQLNonNull ( __TypeKind) ,
235- resolve: { type, _, eventLoopGroup, _ in
235+ resolve: { type, _, _ , eventLoopGroup, _ in
236236 switch type {
237237 case let type as GraphQLScalarType :
238238 return eventLoopGroup. next ( ) . newSucceededFuture ( result: TypeKind . scalar)
@@ -265,7 +265,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
265265 defaultValue: false
266266 )
267267 ] ,
268- resolve: { type, arguments, eventLoopGroup, _ in
268+ resolve: { type, arguments, _ , eventLoopGroup, _ in
269269 if let type = type as? GraphQLObjectType {
270270 let fieldMap = type. fields
271271 var fields = Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } )
@@ -293,7 +293,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
293293 ) ,
294294 " interfaces " : GraphQLField (
295295 type: GraphQLList ( GraphQLNonNull ( GraphQLTypeReference ( " __Type " ) ) ) ,
296- resolve: { type, _, eventLoopGroup, _ in
296+ resolve: { type, _, _ , eventLoopGroup, _ in
297297 if let type = type as? GraphQLObjectType {
298298 return eventLoopGroup. next ( ) . newSucceededFuture ( result: type. interfaces)
299299 }
@@ -303,7 +303,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
303303 ) ,
304304 " possibleTypes " : GraphQLField (
305305 type: GraphQLList ( GraphQLNonNull ( GraphQLTypeReference ( " __Type " ) ) ) ,
306- resolve: { type, args, eventLoopGroup, info in
306+ resolve: { type, args, _ , eventLoopGroup, info in
307307 if let type = type as? GraphQLAbstractType {
308308 return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema. getPossibleTypes ( abstractType: type) )
309309 }
@@ -319,7 +319,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
319319 defaultValue: false
320320 )
321321 ] ,
322- resolve: { type, arguments, eventLoopGroup, _ in
322+ resolve: { type, arguments, _ , eventLoopGroup, _ in
323323 if let type = type as? GraphQLEnumType {
324324 var values = type. values
325325
@@ -335,7 +335,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
335335 ) ,
336336 " inputFields " : GraphQLField (
337337 type: GraphQLList ( GraphQLNonNull ( __InputValue) ) ,
338- resolve: { type, _, eventLoopGroup, _ in
338+ resolve: { type, _, _ , eventLoopGroup, _ in
339339 if let type = type as? GraphQLInputObjectType {
340340 let fieldMap = type. fields
341341 return eventLoopGroup. next ( ) . newSucceededFuture ( result: Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } ) )
@@ -358,7 +358,7 @@ let __Field = try! GraphQLObjectType(
358358 " description " : GraphQLField ( type: GraphQLString) ,
359359 " args " : GraphQLField (
360360 type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
361- resolve: { field, _, eventLoopGroup, _ in
361+ resolve: { field, _, _ , eventLoopGroup, _ in
362362 guard let field = field as? GraphQLFieldDefinition else {
363363 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
364364 }
@@ -387,7 +387,7 @@ let __InputValue = try! GraphQLObjectType(
387387 description:
388388 " A GraphQL-formatted string representing the default value for this " +
389389 " input value. " ,
390- resolve: { inputValue, _, eventLoopGroup, _ in
390+ resolve: { inputValue, _, _ , eventLoopGroup, _ in
391391 guard let inputValue = inputValue as? GraphQLArgumentDefinition else {
392392 return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
393393 }
@@ -491,7 +491,7 @@ let SchemaMetaFieldDef = GraphQLFieldDefinition(
491491 name: " __schema " ,
492492 type: GraphQLNonNull ( __Schema) ,
493493 description: " Access the current type schema of this server. " ,
494- resolve: { _, _, eventLoopGroup, info in
494+ resolve: { _, _, _ , eventLoopGroup, info in
495495 return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema)
496496 }
497497)
@@ -506,7 +506,7 @@ let TypeMetaFieldDef = GraphQLFieldDefinition(
506506 type: GraphQLNonNull ( GraphQLString)
507507 )
508508 ] ,
509- resolve: { _, arguments, eventLoopGroup, info in
509+ resolve: { _, arguments, _ , eventLoopGroup, info in
510510 let name = arguments [ " name " ] . string!
511511 return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema. getType ( name: name) )
512512 }
@@ -516,7 +516,7 @@ let TypeNameMetaFieldDef = GraphQLFieldDefinition(
516516 name: " __typename " ,
517517 type: GraphQLNonNull ( GraphQLString) ,
518518 description: " The name of the current Object type at runtime. " ,
519- resolve: { _, _, eventLoopGroup, info in
519+ resolve: { _, _, _ , eventLoopGroup, info in
520520 eventLoopGroup. next ( ) . newSucceededFuture ( result: info. parentType. name)
521521 }
522522)
0 commit comments