Interface: GraphQLRequest
Properties
cache?
optionalcache?:CacheOptions
Cache strategy override
documentId?
optionaldocumentId?: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?
optionaloperationName?:string
Operation name (auto-extracted if omitted)
query
query:
string
GraphQL query or mutation string
signal?
optionalsignal?:AbortSignal
AbortSignal for cancellation
variables?
optionalvariables?:Record<string,unknown>
Operation variables