Documentation
API Reference
Classes
AwaitVariablesLink

graphql-tools-monorepo / links/src / AwaitVariablesLink

Class: AwaitVariablesLink

links/src.AwaitVariablesLink

Hierarchy

  • ApolloLink

    AwaitVariablesLink

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AwaitVariablesLink(request?): AwaitVariablesLink

Parameters

NameType
request?RequestHandler

Returns

AwaitVariablesLink

Inherited from

apollo.ApolloLink.constructor

Defined in

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

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): Observable<FetchResult<Record<string, any>, Record<string, any>, Record<string, any>>>

Parameters

NameType
operationOperation
forwardNextLink

Returns

Observable<FetchResult<Record<string, any>, Record<string, any>, Record<string, any>>>

Overrides

apollo.ApolloLink.request

Defined in

packages/links/src/AwaitVariablesLink.ts:30


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