Docs
API
Classes
MeshApolloLink

Class: MeshApolloLink

apollo-link/src.MeshApolloLink

Hierarchy

  • ApolloLink

    MeshApolloLink

Table of contents

Constructors

Methods

Constructors

constructor

new MeshApolloLink(options)

Parameters

Overrides

ApolloLink.constructor

Methods

concat

concat(next): ApolloLink

Parameters

NameType
nextRequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

ApolloLink.concat


request

request(operation, forward?): Observable<FetchResult<Record<string, any>, Record<string, any>, Record<string, any>>>

Parameters

NameType
operationOperation
forward?NextLink

Returns

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

Inherited from

ApolloLink.request


setOnError

setOnError(fn): MeshApolloLink

Parameters

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

Returns

MeshApolloLink

Inherited from

ApolloLink.setOnError


split

split(test, left, right?): ApolloLink

Parameters

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

Returns

ApolloLink

Inherited from

ApolloLink.split


concat

Static concat(first, second): ApolloLink

Parameters

NameType
firstRequestHandler | ApolloLink
secondRequestHandler | ApolloLink

Returns

ApolloLink

Inherited from

ApolloLink.concat


empty

Static empty(): ApolloLink

Returns

ApolloLink

Inherited from

ApolloLink.empty


execute

Static execute(link, operation): Observable<FetchResult<Record<string, any>, Record<string, any>, Record<string, any>>>

Parameters

NameType
linkApolloLink
operationGraphQLRequest

Returns

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

Inherited from

ApolloLink.execute


from

Static from(links): ApolloLink

Parameters

NameType
links(RequestHandler | ApolloLink)[]

Returns

ApolloLink

Inherited from

ApolloLink.from


split

Static split(test, left, right?): ApolloLink

Parameters

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

Returns

ApolloLink

Inherited from

ApolloLink.split