Skip to content

Commit

Permalink
Expose cacheKey function as public (#2014)
Browse files Browse the repository at this point in the history
* Expose cacheKey function as public
* Remove @testable attribute to require public access to cacheKey function
  • Loading branch information
calvincestari authored Nov 3, 2021
1 parent f2a4983 commit 9cab672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Apollo/GraphQLSelectionSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ApolloTests/CacheKeyForFieldTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
@testable import Apollo
import Apollo
import ApolloTestSupport
import StarWarsAPI

Expand Down

0 comments on commit 9cab672

Please sign in to comment.