Classes

The following classes are available globally.

  • ApolloDebugServer is a HTTP server to communicate with apollo-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 more

    Declaration

    Swift

    public class ApolloDebugServer
    extension ApolloDebugServer: DebuggableNetworkTransportDelegate
  • DebuggableNormalizedCache is a bridge between ApolloDebugServer and ApolloStore.

    You should instantiate both ApolloDebugServer and ApolloStore with the same instance of this class.

    See more

    Declaration

    Swift

    public class DebuggableNormalizedCache
    extension DebuggableNormalizedCache: NormalizedCache
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    Swift

    public class DebugInitializeInterceptor : ApolloInterceptor
  • DebuggableInterceptorProvider wraps another interceptor and provides interceptors configured for ApolloDeveloperKit.

    DebuggableInterceptorProvider prepends DebugInitializeInterceptor at first, then appends DebuggableResultTranslateInterceptor at last only when the operation comes from ApolloDeveloperKit.

    See more

    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 in LegacyParsingInterceptor.interceptAsync(chain:request:response:completion:) and store the result in HTTPResponse.parsedResponse. This change makes it difficult to query an arbitrary operation because GraphQLSelectionSet.selections cannot change its return value at runtime.

    However, at least for the time being we can use HTTPResponse.legacyResponse, which doesn’t check GraphQLSelectionSet.selections instead of HTTPResponse.parsedResponse.

    DebuggableResultTranslateInterceptor is intended to be put after LegacyParsingInterceptor and it substitutes HTTPResponse.legacyResponse for HTTPResponse.parsedResponse, only when the operation comes from ApolloDeveloperKit.

    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 more

    Declaration

    Swift

    public class DebuggableResultTranslateInterceptor : ApolloInterceptor