import GraphQLLink from '@hackthevalley/sdk/app/links/synchronouslinks/GraphQLLink.js'
GraphQLLink
Extends:
Link → SynchronousLink → 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#constructorParams:
Name | Type | Attribute | Description |
url | string | ||
config | GraphQLLinkConfiguration |
|
Public Members
public client: GraphQLClient source
Public Methods
public async mutate(config: GraphQLLinkRunConfiguration): any source
Alias for run.
Params:
Name | Type | Attribute | Description |
config | GraphQLLinkRunConfiguration |
Return:
any |
public async query(config: GraphQLLinkRunConfiguration): * source
Alias for run.
Params:
Name | Type | Attribute | Description |
config | GraphQLLinkRunConfiguration |
Return:
* |