Shape of the expected data object
GraphQL endpoint URL
GraphQL query string
Optionalvariables: Record<string, unknown>
Optional query variables
Optionalheaders: Record<string, string>
Optional request headers
The data field from the GraphQL response
Minimal one-shot query helper — no client instantiation needed. Creates a temporary GraphQLClient and executes the query.