Class GraphQLClient<TTypings>
Constructors
Methods
isResult
- isResult(json): unknown
Returns unknown
parseResponse
- parseResponse<TData>(response, init?): Promise<ExecutionResult<TData, ObjMap<unknown>>>
Returns Promise<ExecutionResult<TData, ObjMap<unknown>>>
post
- post<TData>(__namedParameters): Promise<ExecutionResult<TData, ObjMap<unknown>>>
Returns Promise<ExecutionResult<TData, ObjMap<unknown>>>
postNamed
- postNamed<TOperationName>(operationName, variables, init?): Promise<ExecutionResult<TTypings["OperationNameToData"][TOperationName], ObjMap<unknown>>>
Type Parameters
- TOperationName extends string
Returns Promise<ExecutionResult<TTypings["OperationNameToData"][TOperationName], ObjMap<unknown>>>
setHeaders
- setHeaders(headers): void
Parameters
- headers: Record<string, string>
Returns void