Home Reference Source
public class | source

GraphQLLink

Extends:

LinkSynchronousLink → GraphQLLink

Constructor Summary

Public Constructor
public

constructor(url: string, config: GraphQLLinkConfiguration)

Construct a new GraphQLLink.

Member Summary

Public Members
public

client: GraphQLClient

Method Summary

Public Methods
public

async mutate(config: GraphQLLinkRunConfiguration): any

Alias for run.

public

async query(config: GraphQLLinkRunConfiguration): *

Alias for run.

public

async run(config: GraphQLLinkRunConfiguration): any

Run a new apollo request

Inherited Summary

From class Link
public
public

run(config: any)

Run a request

From class SynchronousLink
public

Public Constructors

public constructor(url: string, config: GraphQLLinkConfiguration) source

Construct a new GraphQLLink.

Override:

SynchronousLink#constructor

Params:

NameTypeAttributeDescription
url string
config GraphQLLinkConfiguration
  • optional
  • default: {}

Public Members

public client: GraphQLClient source

Public Methods

public async mutate(config: GraphQLLinkRunConfiguration): any source

Alias for run.

Params:

NameTypeAttributeDescription
config GraphQLLinkRunConfiguration

Return:

any

public async query(config: GraphQLLinkRunConfiguration): * source

Alias for run.

Params:

NameTypeAttributeDescription
config GraphQLLinkRunConfiguration

Return:

*

public async run(config: GraphQLLinkRunConfiguration): any source

Run a new apollo request

Override:

Link#run

Params:

NameTypeAttributeDescription
config GraphQLLinkRunConfiguration

Return:

any