Home Reference Source
import HackTheValleyGraphQLAdaptor from '@hackthevalley/sdk/app/adaptors/HackTheValleyGraphQLAdaptor.js'
public class | source

HackTheValleyGraphQLAdaptor

Extends:

Adaptor → HackTheValleyGraphQLAdaptor

Constructor Summary

Public Constructor
public

constructor(config: EndpointsConfiguration)

Member Summary

Public Members
public

Method Summary

Public Methods
public

mutate(query: string, variables: any): *

public

query(query: string, variables: any): *

public
public

Inherited Summary

From class Adaptor
public

config: any

public

run(config: any): any

Run an adaptor request

Public Constructors

public constructor(config: EndpointsConfiguration) source

Construct the adaptor

Override:

Adaptor#constructor

Params:

NameTypeAttributeDescription
config EndpointsConfiguration

Public Members

Public Methods

public mutate(query: string, variables: any): * source

Params:

NameTypeAttributeDescription
query string
variables any
  • optional
  • default: {}

Return:

*

public query(query: string, variables: any): * source

Params:

NameTypeAttributeDescription
query string
variables any
  • optional
  • default: {}

Return:

*

public setAuthenticationToken(token: string) source

Params:

NameTypeAttributeDescription
token string

public setGraphQLEndpoint(url: string) source

Params:

NameTypeAttributeDescription
url string