Documentation
API Reference
Classes
ExecutorLink

graphql-tools-monorepo / executors/apollo-link/src / ExecutorLink

Class: ExecutorLink

executors/apollo-link/src.ExecutorLink

Hierarchy

  • ApolloLink

    ExecutorLink

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ExecutorLink(executor): ExecutorLink

Parameters

NameType
executorExecutor

Returns

ExecutorLink

Overrides

apollo.ApolloLink.constructor

Defined in

packages/executors/apollo-link/src/index.ts:44

Properties

getMemoryInternals

Optional getMemoryInternals: () => unknown

Can be provided by a link that has an internal cache to report it’s memory details.

Type declaration

▸ (): unknown

Returns

unknown

Inherited from

apollo.ApolloLink.getMemoryInternals

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:30


left

Optional Readonly left: ApolloLink

Used to iterate through all links that are concatenations or split links.

Inherited from

apollo.ApolloLink.left

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:20


right

Optional Readonly right: ApolloLink

Used to iterate through all links that are concatenations or split links.

Inherited from

apollo.ApolloLink.right

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:25

Methods

concat

concat(next): ApolloLink

Parameters

NameType
nextRequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

apollo.ApolloLink.concat

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:12


request

request(operation, forward?): null | Observable<FetchResult>

Parameters

NameType
operationOperation
forward?NextLink

Returns

null | Observable<FetchResult>

Inherited from

apollo.ApolloLink.request

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:13


setOnError

setOnError(fn): this

Parameters

NameType
fn(error: any, observer?: Observer<FetchResult>) => false | void

Returns

this

Inherited from

apollo.ApolloLink.setOnError

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:15


split

split(test, left, right?): ApolloLink

Parameters

NameType
test(op: Operation) => boolean
leftRequestHandler | ApolloLink
right?RequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

apollo.ApolloLink.split

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:11


concat

concat(first, second): ApolloLink

Parameters

NameType
firstRequestHandler | ApolloLink
secondRequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

apollo.ApolloLink.concat

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:9


empty

empty(): ApolloLink

Returns

ApolloLink

Inherited from

apollo.ApolloLink.empty

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:5


execute

execute(link, operation): Observable<FetchResult>

Parameters

NameType
linkApolloLink
operationGraphQLRequest<Record<string, any>>

Returns

Observable<FetchResult>

Inherited from

apollo.ApolloLink.execute

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:8


from

from(links): ApolloLink

Parameters

NameType
links(RequestHandler | ApolloLink)[]

Returns

ApolloLink

Inherited from

apollo.ApolloLink.from

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:6


split

split(test, left, right?): ApolloLink

Parameters

NameType
test(op: Operation) => boolean
leftRequestHandler | ApolloLink
right?RequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

apollo.ApolloLink.split

Defined in

node_modules/@apollo/client/link/core/ApolloLink.d.ts:7