Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/Apollo/Decoding.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

private typealias GroupedFields = GroupedSequence<String, GraphQLField>

func decode<SelectionSet: GraphQLSelectionSet>(selectionSet: SelectionSet.Type, from object: JSONObject, variables: GraphQLMap? = nil) throws -> SelectionSet {
Expand Down
1 change: 1 addition & 0 deletions Sources/Apollo/GraphQLExecutor.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Dispatch
import Foundation

/// A resolver is responsible for resolving a value for a field.
typealias GraphQLResolver = (_ object: JSONObject, _ info: GraphQLResolveInfo) -> ResultOrPromise<JSONValue?>
Expand Down
2 changes: 2 additions & 0 deletions Sources/Apollo/GraphQLHTTPRequestError.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

/// An error which has occurred during the serialization of a request.
public enum GraphQLHTTPRequestError: Error, LocalizedError {
case cancelledByDelegate
Expand Down
2 changes: 2 additions & 0 deletions Sources/Apollo/GraphQLHTTPResponseError.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

/// A transport-level, HTTP-specific error.
public struct GraphQLHTTPResponseError: Error, LocalizedError {
public enum ErrorKind {
Expand Down
1 change: 1 addition & 0 deletions Sources/ApolloWebSocket/WebSocketTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Apollo
#endif
import Starscream
import Foundation

// To allow for alternative implementations supporting the same WebSocketClient protocol
public class ApolloWebSocket: WebSocket, ApolloWebSocketClient {
Expand Down