sdk.Gql
Implements
IGqlClient
<unknown
>
Constructors
constructor
new Gql(stash
)
Parameters
Name | Type |
---|---|
stash | Stash |
Defined in
Properties
_link
Readonly
_link: HttpLink
Defined in
Methods
clearCache
clearCache(): void
Returns
void
Defined in
getCache
getCache(): IQuickLRU
Returns
cache container for graphQL results
Defined in
makeOperation
makeOperation(operation
): GraphQLRequest
Parameters
Name | Type | Description |
---|---|---|
operation | GqlOperation | graphQL request object |
Returns
GraphQLRequest
an object with the transformed graphQL template string for query
Defined in
run
run<T
>(operation
, saveCache?
): ServiceCallResult
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
operation | GraphQLRequest | undefined | graphQL request object |
saveCache | boolean | true | Cache the result |
Returns
ServiceCallResult