Docs
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.


PROTOCOL

InterceptorProvider

public protocol InterceptorProvider

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

Methods

interceptors(for:)

func 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:)

func 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
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company