Skip to main content

Interface: GraphQLOperation

Defined in: client/GraphQLClient.ts:50

Represents a GraphQL operation (query or mutation).

As of v0.4.0, fragment inlining is performed at build time, so operation strings reaching execute() already contain every fragment they reference.

Properties

fetchOptions?

optional fetchOptions?: GraphQLFetchOptions

Defined in: client/GraphQLClient.ts:59

Optional fetch hints for THIS operation (e.g. Next.js data-cache control). Pass-through to the underlying fetch() call. NEVER included in the GraphQL request body — it's a transport hint, not part of the wire payload.


operationName?

optional operationName?: string

Defined in: client/GraphQLClient.ts:51


query

query: string

Defined in: client/GraphQLClient.ts:52


variables?

optional variables?: Record<string, any>

Defined in: client/GraphQLClient.ts:53