diff --git a/Sources/Apollo/GraphQLSelectionSet.swift b/Sources/Apollo/GraphQLSelectionSet.swift index ef5f92f304..779a1a62af 100644 --- a/Sources/Apollo/GraphQLSelectionSet.swift +++ b/Sources/Apollo/GraphQLSelectionSet.swift @@ -61,7 +61,7 @@ public struct GraphQLField: GraphQLSelection { self.type = type } - func cacheKey(with variables: [String: JSONEncodable]?) throws -> String { + public func cacheKey(with variables: [String: JSONEncodable]?) throws -> String { if let argumentValues = try arguments?.evaluate(with: variables), argumentValues.apollo.isNotEmpty { diff --git a/Tests/ApolloTests/CacheKeyForFieldTests.swift b/Tests/ApolloTests/CacheKeyForFieldTests.swift index 95b7087b3d..faa8ff6129 100644 --- a/Tests/ApolloTests/CacheKeyForFieldTests.swift +++ b/Tests/ApolloTests/CacheKeyForFieldTests.swift @@ -1,5 +1,5 @@ import XCTest -@testable import Apollo +import Apollo import ApolloTestSupport import StarWarsAPI