File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import Async
1
+ import NIO
2
2
3
3
/// This is the primary entry point function for fulfilling GraphQL operations
4
4
/// by parsing, validating, and executing a GraphQL document along side a
@@ -40,7 +40,7 @@ public func graphql(
40
40
let validationErrors = validate ( instrumentation: instrumentation, schema: schema, ast: documentAST)
41
41
42
42
guard validationErrors. isEmpty else {
43
- return eventLoopGroup. eventLoop . newSucceededFuture ( result: [ " errors " : try validationErrors. asMap ( ) ] )
43
+ return eventLoopGroup. next ( ) . newSucceededFuture ( result: [ " errors " : try validationErrors. asMap ( ) ] )
44
44
}
45
45
46
46
return execute (
@@ -92,7 +92,7 @@ public func graphql<Retrieval:PersistedQueryRetrieval>(
92
92
case . parseError( let parseError) :
93
93
throw parseError
94
94
case . validateErrors( _, let validationErrors) :
95
- return eventLoopGroup. eventLoop . newSucceededFuture ( result: [ " errors " : try validationErrors. asMap ( ) ] )
95
+ return eventLoopGroup. next ( ) . newSucceededFuture ( result: [ " errors " : try validationErrors. asMap ( ) ] )
96
96
case . result( let schema, let documentAST) :
97
97
return execute (
98
98
queryStrategy: queryStrategy,
You can’t perform that action at this time.
0 commit comments