Przejdź do głównej zawartości

Interface: GraphQLRequest

Properties

cache?

optional cache?: CacheOptions

Cache strategy override


documentId?

optional documentId?: string

Persisted-document id (sha256:<hex>), carried by TypedDocumentString.__meta__.hash. When present on a cacheable public read, the transport sends only this id over GET (instead of the full query) so a shared edge cache can serve the response. Absent → POST.


headers

headers: Record<string, string>

Request headers (merged: default < middleware < request)


isMutation

isMutation: boolean

Whether this is a mutation (affects retry, cache)


operationName?

optional operationName?: string

Operation name (auto-extracted if omitted)


query

query: string

GraphQL query or mutation string


signal?

optional signal?: AbortSignal

AbortSignal for cancellation


variables?

optional variables?: Record<string, unknown>

Operation variables