@@ -10,7 +10,7 @@ let __Schema = try! GraphQLObjectType(
10
10
" types " : GraphQLField (
11
11
type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __Type) ) ) ,
12
12
description: " A list of all types supported by this server. " ,
13
- resolve: { schema, _, eventLoopGroup, _ in
13
+ resolve: { schema, _, _ , eventLoopGroup, _ in
14
14
guard let schema = schema as? GraphQLSchema else {
15
15
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
16
16
}
@@ -22,7 +22,7 @@ let __Schema = try! GraphQLObjectType(
22
22
" queryType " : GraphQLField (
23
23
type: GraphQLNonNull ( __Type) ,
24
24
description: " The type that query operations will be rooted at. " ,
25
- resolve: { schema, _, eventLoopGroup, _ in
25
+ resolve: { schema, _, _ , eventLoopGroup, _ in
26
26
guard let schema = schema as? GraphQLSchema else {
27
27
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
28
28
}
@@ -35,7 +35,7 @@ let __Schema = try! GraphQLObjectType(
35
35
description:
36
36
" If this server supports mutation, the type that " +
37
37
" mutation operations will be rooted at. " ,
38
- resolve: { schema, _, eventLoopGroup, _ in
38
+ resolve: { schema, _, _ , eventLoopGroup, _ in
39
39
guard let schema = schema as? GraphQLSchema else {
40
40
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
41
41
}
@@ -48,7 +48,7 @@ let __Schema = try! GraphQLObjectType(
48
48
description:
49
49
" If this server support subscription, the type that " +
50
50
" subscription operations will be rooted at. " ,
51
- resolve: { schema, _, eventLoopGroup, _ in
51
+ resolve: { schema, _, _ , eventLoopGroup, _ in
52
52
guard let schema = schema as? GraphQLSchema else {
53
53
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
54
54
}
@@ -59,7 +59,7 @@ let __Schema = try! GraphQLObjectType(
59
59
" directives " : GraphQLField (
60
60
type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __Directive) ) ) ,
61
61
description: " A list of all directives supported by this server. " ,
62
- resolve: { schema, _, eventLoopGroup, _ in
62
+ resolve: { schema, _, _ , eventLoopGroup, _ in
63
63
guard let schema = schema as? GraphQLSchema else {
64
64
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
65
65
}
@@ -87,7 +87,7 @@ let __Directive = try! GraphQLObjectType(
87
87
) ,
88
88
" args " : GraphQLField (
89
89
type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
90
- resolve: { directive, _, eventLoopGroup, _ in
90
+ resolve: { directive, _, _ , eventLoopGroup, _ in
91
91
guard let directive = directive as? GraphQLDirective else {
92
92
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
93
93
}
@@ -100,7 +100,7 @@ let __Directive = try! GraphQLObjectType(
100
100
" onOperation " : GraphQLField (
101
101
type: GraphQLNonNull ( GraphQLBoolean) ,
102
102
deprecationReason: " Use `locations`. " ,
103
- resolve: { directive, _, eventLoopGroup, _ in
103
+ resolve: { directive, _, _ , eventLoopGroup, _ in
104
104
guard let d = directive as? GraphQLDirective else {
105
105
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
106
106
}
@@ -113,7 +113,7 @@ let __Directive = try! GraphQLObjectType(
113
113
" onFragment " : GraphQLField (
114
114
type: GraphQLNonNull ( GraphQLBoolean) ,
115
115
deprecationReason: " Use `locations`. " ,
116
- resolve: { directive, _, eventLoopGroup, _ in
116
+ resolve: { directive, _, _ , eventLoopGroup, _ in
117
117
guard let d = directive as? GraphQLDirective else {
118
118
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
119
119
}
@@ -126,7 +126,7 @@ let __Directive = try! GraphQLObjectType(
126
126
" onField " : GraphQLField (
127
127
type: GraphQLNonNull ( GraphQLBoolean) ,
128
128
deprecationReason: " Use `locations`. " ,
129
- resolve: { directive, _, eventLoopGroup, _ in
129
+ resolve: { directive, _, _ , eventLoopGroup, _ in
130
130
guard let d = directive as? GraphQLDirective else {
131
131
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
132
132
}
@@ -232,7 +232,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
232
232
fields: [
233
233
" kind " : GraphQLField (
234
234
type: GraphQLNonNull ( __TypeKind) ,
235
- resolve: { type, _, eventLoopGroup, _ in
235
+ resolve: { type, _, _ , eventLoopGroup, _ in
236
236
switch type {
237
237
case let type as GraphQLScalarType :
238
238
return eventLoopGroup. next ( ) . newSucceededFuture ( result: TypeKind . scalar)
@@ -265,7 +265,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
265
265
defaultValue: false
266
266
)
267
267
] ,
268
- resolve: { type, arguments, eventLoopGroup, _ in
268
+ resolve: { type, arguments, _ , eventLoopGroup, _ in
269
269
if let type = type as? GraphQLObjectType {
270
270
let fieldMap = type. fields
271
271
var fields = Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } )
@@ -293,7 +293,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
293
293
) ,
294
294
" interfaces " : GraphQLField (
295
295
type: GraphQLList ( GraphQLNonNull ( GraphQLTypeReference ( " __Type " ) ) ) ,
296
- resolve: { type, _, eventLoopGroup, _ in
296
+ resolve: { type, _, _ , eventLoopGroup, _ in
297
297
if let type = type as? GraphQLObjectType {
298
298
return eventLoopGroup. next ( ) . newSucceededFuture ( result: type. interfaces)
299
299
}
@@ -303,7 +303,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
303
303
) ,
304
304
" possibleTypes " : GraphQLField (
305
305
type: GraphQLList ( GraphQLNonNull ( GraphQLTypeReference ( " __Type " ) ) ) ,
306
- resolve: { type, args, eventLoopGroup, info in
306
+ resolve: { type, args, _ , eventLoopGroup, info in
307
307
if let type = type as? GraphQLAbstractType {
308
308
return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema. getPossibleTypes ( abstractType: type) )
309
309
}
@@ -319,7 +319,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
319
319
defaultValue: false
320
320
)
321
321
] ,
322
- resolve: { type, arguments, eventLoopGroup, _ in
322
+ resolve: { type, arguments, _ , eventLoopGroup, _ in
323
323
if let type = type as? GraphQLEnumType {
324
324
var values = type. values
325
325
@@ -335,7 +335,7 @@ let __Type: GraphQLObjectType = try! GraphQLObjectType(
335
335
) ,
336
336
" inputFields " : GraphQLField (
337
337
type: GraphQLList ( GraphQLNonNull ( __InputValue) ) ,
338
- resolve: { type, _, eventLoopGroup, _ in
338
+ resolve: { type, _, _ , eventLoopGroup, _ in
339
339
if let type = type as? GraphQLInputObjectType {
340
340
let fieldMap = type. fields
341
341
return eventLoopGroup. next ( ) . newSucceededFuture ( result: Array ( fieldMap. values) . sorted ( by: { $0. name < $1. name } ) )
@@ -358,7 +358,7 @@ let __Field = try! GraphQLObjectType(
358
358
" description " : GraphQLField ( type: GraphQLString) ,
359
359
" args " : GraphQLField (
360
360
type: GraphQLNonNull ( GraphQLList ( GraphQLNonNull ( __InputValue) ) ) ,
361
- resolve: { field, _, eventLoopGroup, _ in
361
+ resolve: { field, _, _ , eventLoopGroup, _ in
362
362
guard let field = field as? GraphQLFieldDefinition else {
363
363
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
364
364
}
@@ -387,7 +387,7 @@ let __InputValue = try! GraphQLObjectType(
387
387
description:
388
388
" A GraphQL-formatted string representing the default value for this " +
389
389
" input value. " ,
390
- resolve: { inputValue, _, eventLoopGroup, _ in
390
+ resolve: { inputValue, _, _ , eventLoopGroup, _ in
391
391
guard let inputValue = inputValue as? GraphQLArgumentDefinition else {
392
392
return eventLoopGroup. next ( ) . newSucceededFuture ( result: nil )
393
393
}
@@ -491,7 +491,7 @@ let SchemaMetaFieldDef = GraphQLFieldDefinition(
491
491
name: " __schema " ,
492
492
type: GraphQLNonNull ( __Schema) ,
493
493
description: " Access the current type schema of this server. " ,
494
- resolve: { _, _, eventLoopGroup, info in
494
+ resolve: { _, _, _ , eventLoopGroup, info in
495
495
return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema)
496
496
}
497
497
)
@@ -506,7 +506,7 @@ let TypeMetaFieldDef = GraphQLFieldDefinition(
506
506
type: GraphQLNonNull ( GraphQLString)
507
507
)
508
508
] ,
509
- resolve: { _, arguments, eventLoopGroup, info in
509
+ resolve: { _, arguments, _ , eventLoopGroup, info in
510
510
let name = arguments [ " name " ] . string!
511
511
return eventLoopGroup. next ( ) . newSucceededFuture ( result: info. schema. getType ( name: name) )
512
512
}
@@ -516,7 +516,7 @@ let TypeNameMetaFieldDef = GraphQLFieldDefinition(
516
516
name: " __typename " ,
517
517
type: GraphQLNonNull ( GraphQLString) ,
518
518
description: " The name of the current Object type at runtime. " ,
519
- resolve: { _, _, eventLoopGroup, info in
519
+ resolve: { _, _, _ , eventLoopGroup, info in
520
520
eventLoopGroup. next ( ) . newSucceededFuture ( result: info. parentType. name)
521
521
}
522
522
)
0 commit comments