Skip to content

Commit e859be0

Browse files
Merge pull request #1372 from kevinmbeaulieu/kb/public-parse
Make response parsing helpers public
2 parents 981a649 + 56be0b5 commit e859be0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Apollo/GraphQLResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public final class GraphQLResponse<Data: GraphQLSelectionSet> {
6161
}
6262
}
6363

64-
func parseErrorsOnlyFast() -> [GraphQLError]? {
64+
public func parseErrorsOnlyFast() -> [GraphQLError]? {
6565
guard let errorsEntry = self.body["errors"] as? [JSONObject] else {
6666
return nil
6767
}
6868

6969
return errorsEntry.map(GraphQLError.init)
7070
}
7171

72-
func parseResultFast() throws -> GraphQLResult<Data> {
72+
public func parseResultFast() throws -> GraphQLResult<Data> {
7373
let errors = self.parseErrorsOnlyFast()
7474
let extensions = body["extensions"] as? JSONObject
7575

0 commit comments

Comments
 (0)