links_src.awaitvariableslink

Class: AwaitVariablesLink#

links/src.AwaitVariablesLink

Hierarchy#

  • ApolloLink

    AwaitVariablesLink

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new AwaitVariablesLink(request?: RequestHandler): AwaitVariablesLink

Parameters:#

NameType
request?RequestHandler

Returns: AwaitVariablesLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:9

Methods#

concat#

concat(next: ApolloLink | RequestHandler): ApolloLink

Parameters:#

NameType
nextApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:12


request#

request(operation: Operation, forward: NextLink): Observable<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>

Parameters:#

NameType
operationOperation
forwardNextLink

Returns: Observable<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>

Defined in: packages/links/src/AwaitVariablesLink.ts:27


setOnError#

setOnError(fn: (error: any, observer?: Observer<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>) => false | void): AwaitVariablesLink

Parameters:#

NameType
fn(error: any, observer?: Observer<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>) => false

Returns: AwaitVariablesLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:15


split#

split(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler): ApolloLink

Parameters:#

NameType
test(op: Operation) => boolean
leftApolloLink
right?ApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:11


concat#

Staticconcat(first: ApolloLink | RequestHandler, second: ApolloLink | RequestHandler): ApolloLink

Parameters:#

NameType
firstApolloLink
secondApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:9


empty#

Staticempty(): ApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:5


execute#

Staticexecute(link: ApolloLink, operation: GraphQLRequest): Observable<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>

Parameters:#

NameType
linkApolloLink
operationGraphQLRequest

Returns: Observable<FetchResult<{ [key: string]: any; }, Record<string, any\>, Record<string, any\>\>\>

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:8


from#

Staticfrom(links: (ApolloLink | RequestHandler)[]): ApolloLink

Parameters:#

NameType
links(ApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:6


split#

Staticsplit(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler): ApolloLink

Parameters:#

NameType
test(op: Operation) => boolean
leftApolloLink
right?ApolloLink

Returns: ApolloLink

Defined in: packages/links/node_modules/@apollo/client/link/core/ApolloLink.d.ts:7