You are viewing documentation for a previous version of this software.

Switch to the latest stable version.

InterceptorProvider


PROTOCOL

InterceptorProvider

Swift
1public protocol InterceptorProvider

A protocol to allow easy creation of an array of interceptors for a given operation.

Methods

interceptors(for:)

Swift
1func interceptors<Operation: GraphQLOperation>(for operation: Operation) -> [ApolloInterceptor]

Creates a new array of interceptors when called

  • Parameter operation: The operation to provide interceptors for

Parameters

NameDescription
operationThe operation to provide interceptors for

additionalErrorInterceptor(for:)

Swift
1func additionalErrorInterceptor<Operation: GraphQLOperation>(for operation: Operation) -> ApolloErrorInterceptor?

Provides an additional error interceptor for any additional handling of errors before returning to the UI, such as logging.

  • Parameter operation: The operation to provide an additional error interceptor for

Parameters

NameDescription
operationThe operation to provide an additional error interceptor for
Feedback

Edit on GitHub

Forums