diff --git a/ApolloAlamofire.podspec b/ApolloAlamofire.podspec index 788e543..ceb66dd 100644 --- a/ApolloAlamofire.podspec +++ b/ApolloAlamofire.podspec @@ -41,5 +41,5 @@ and solves known limitations of Apollo iOS library. # s.public_header_files = 'Pod/Classes/**/*.h' # s.frameworks = 'UIKit', 'MapKit' s.dependency 'Alamofire', '~> 4.9.1' - s.dependency 'Apollo', '~> 0.19.0' + s.dependency 'Apollo', '~> 0.27.1' end diff --git a/ApolloAlamofire/Classes/AlamofireTransport.swift b/ApolloAlamofire/Classes/AlamofireTransport.swift index 9a0304f..870f3ba 100644 --- a/ApolloAlamofire/Classes/AlamofireTransport.swift +++ b/ApolloAlamofire/Classes/AlamofireTransport.swift @@ -38,7 +38,7 @@ public class AlamofireTransport: NetworkTransport { public func send( operation: Operation, - completionHandler: @escaping (Swift.Result, Error>) -> () + completionHandler: @escaping (Swift.Result, Error>) -> () ) -> Cancellable where Operation: GraphQLOperation { let vars: JSONEncodable = operation.variables?.mapValues { $0?.jsonValue } @@ -55,7 +55,7 @@ public class AlamofireTransport: NetworkTransport { } return request.responseJSON { response in let result = response.result - .flatMap { value -> GraphQLResponse in + .flatMap { value -> GraphQLResponse in guard let value = value as? JSONObject else { throw response.error! }