Skip to main content

sdk.Gql

Implements

Constructors

constructor

new Gql(stash)

Parameters

NameType
stashStash

Defined in

sdk/src/gql/index.ts:26

Properties

Readonly _link: HttpLink

Defined in

sdk/src/gql/index.ts:22

Methods

clearCache

clearCache(): void

Returns

void

Defined in

sdk/src/gql/index.ts:83


getCache

getCache(): IQuickLRU

Returns

IQuickLRU

cache container for graphQL results

Defined in

sdk/src/gql/index.ts:79


makeOperation

makeOperation(operation): GraphQLRequest

Parameters

NameTypeDescription
operationGqlOperationgraphQL request object

Returns

GraphQLRequest

an object with the transformed graphQL template string for query

Defined in

sdk/src/gql/index.ts:66


run

run<T>(operation, saveCache?): ServiceCallResult<T>

Type parameters

Name
T

Parameters

NameTypeDefault valueDescription
operationGraphQLRequestundefinedgraphQL request object
saveCachebooleantrueCache the result

Returns

ServiceCallResult<T>

ServiceCallResult

Implementation of

IGqlClient.run

Defined in

sdk/src/gql/index.ts:43