Classes
The following classes are available globally.
-
ApolloDebugServer
is a HTTP server to communicate withapollo-client-devtools
.The server works even after the app moves to the background for a while. When the server is released, it stops itself automatically.
See moreDeclaration
Swift
public class ApolloDebugServer
extension ApolloDebugServer: DebuggableNetworkTransportDelegate
-
DebuggableNormalizedCache
is a bridge betweenApolloDebugServer
andApolloStore
.You should instantiate both
See moreApolloDebugServer
andApolloStore
with the same instance of this class.Declaration
Swift
public class DebuggableNormalizedCache
extension DebuggableNormalizedCache: NormalizedCache
-
Undocumented
See moreDeclaration
Swift
open class DebuggableRequestChainNetworkTransport : RequestChainNetworkTransport, DebuggableNetworkTransport
-
DebugInitializeInterceptor
is an interceptor that notifies that an operation begins.DebugInitializeInterceptor
is intended to be put before all the rest interceptors.Typically you don’t need to use this class directly but if you want to assemble your custom interceptor chain, you need to put this class at the right place.
See moreDeclaration
Swift
public class DebugInitializeInterceptor : ApolloInterceptor
-
DebuggableInterceptorProvider
wraps another interceptor and provides interceptors configured forApolloDeveloperKit
.
See moreDebuggableInterceptorProvider
prependsDebugInitializeInterceptor
at first, then appendsDebuggableResultTranslateInterceptor
at last only when the operation comes fromApolloDeveloperKit
.Declaration
Swift
public class DebuggableInterceptorProvider : InterceptorProvider
-
DebuggableResultTranslateInterceptor
is an interceptor that translates legacy response to GraphQLResult.Since Apollo 0.34.0, Apollo parses returned raw GraphQL response along
GraphQLSelectionSet.selections
inLegacyParsingInterceptor.interceptAsync(chain:request:response:completion:)
and store the result inHTTPResponse.parsedResponse
. This change makes it difficult to query an arbitrary operation becauseGraphQLSelectionSet.selections
cannot change its return value at runtime.However, at least for the time being we can use
HTTPResponse.legacyResponse
, which doesn’t checkGraphQLSelectionSet.selections
instead ofHTTPResponse.parsedResponse
.DebuggableResultTranslateInterceptor
is intended to be put afterLegacyParsingInterceptor
and it substitutesHTTPResponse.legacyResponse
forHTTPResponse.parsedResponse
, only when the operation comes fromApolloDeveloperKit
.Typically you don’t need to use this class directly but if you want to assemble your custom interceptor chain, you need to put this class at the right place.
See moreDeclaration
Swift
public class DebuggableResultTranslateInterceptor : ApolloInterceptor