Interface GraphQLRequestOptions

GraphQL request options

Hierarchy

Properties

data?: unknown
formData?: FormData
headers?: Record<string, string>
includeOperationName?: boolean

Whether to include operation name in the request

Default

true
includeQueryName?: boolean

Whether to include query name in the request

Default

true
operationName?: string

GraphQL operation name

operationType?: GraphQLOperationType

GraphQL operation type

params?: Record<string, unknown>
query?: Record<string, unknown>
responseType?: "json" | "text" | "blob" | "arraybuffer"
timeout?: number
variables?: Record<string, any>

GraphQL variables

withCredentials?: boolean

Generated using TypeDoc