graphqlade
Preparing search index...
GraphQLClient
Class GraphQLClient<TTypings>
Type Parameters
TTypings
extends
GraphQLClientTypings
=
GraphQLClientTypings
Index
Constructors
constructor
Methods
is
Result
parse
Response
post
post
Named
set
Headers
Constructors
constructor
new
GraphQLClient
<
TTypings
extends
GraphQLClientTypings
=
GraphQLClientTypings
>
(
options
:
GraphQLClientOptions
<
TTypings
>
,
)
:
GraphQLClient
<
TTypings
>
Type Parameters
TTypings
extends
GraphQLClientTypings
=
GraphQLClientTypings
Parameters
options
:
GraphQLClientOptions
<
TTypings
>
Returns
GraphQLClient
<
TTypings
>
Methods
is
Result
isResult
(
json
:
unknown
)
:
unknown
Parameters
json
:
unknown
Returns
unknown
parse
Response
parseResponse
<
TData
>
(
response
:
Response
,
init
?:
GraphQLRequestInit
,
)
:
Promise
<
ExecutionResult
<
TData
,
ObjMap
<
unknown
>
>
>
Type Parameters
TData
Parameters
response
:
Response
Optional
init
:
GraphQLRequestInit
Returns
Promise
<
ExecutionResult
<
TData
,
ObjMap
<
unknown
>
>
>
post
post
<
TData
>
(
__namedParameters
:
GraphQLRequestOptions
,
)
:
Promise
<
ExecutionResult
<
TData
,
ObjMap
<
unknown
>
>
>
Type Parameters
TData
Parameters
__namedParameters
:
GraphQLRequestOptions
Returns
Promise
<
ExecutionResult
<
TData
,
ObjMap
<
unknown
>
>
>
post
Named
postNamed
<
TOperationName
extends
string
>
(
operationName
:
TOperationName
,
variables
:
TTypings
[
"OperationNameToVariables"
]
[
TOperationName
]
,
init
?:
GraphQLRequestInit
,
)
:
Promise
<
ExecutionResult
<
TTypings
[
"OperationNameToData"
]
[
TOperationName
]
,
ObjMap
<
unknown
>
,
>
,
>
Type Parameters
TOperationName
extends
string
Parameters
operationName
:
TOperationName
variables
:
TTypings
[
"OperationNameToVariables"
]
[
TOperationName
]
Optional
init
:
GraphQLRequestInit
Returns
Promise
<
ExecutionResult
<
TTypings
[
"OperationNameToData"
]
[
TOperationName
]
,
ObjMap
<
unknown
>
,
>
,
>
set
Headers
setHeaders
(
headers
:
Record
<
string
,
string
>
)
:
void
Parameters
headers
:
Record
<
string
,
string
>
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
is
Result
parse
Response
post
post
Named
set
Headers
graphqlade
Loading...