GraphQLResourceClient allows you to execute GraphQL queries and mutations against your configured endpoint.
Usage
Per-Request Headers
You can pass arbitrary HTTP headers on a per-request basis. Per-request headers override the resource’s configured auth header if they use the same header name. This is useful for passing request IDs, tenant headers, or additional auth tokens:Inputs
Theinvoke method accepts the following arguments:
string
required
The HTTP method to use. Typically
"POST" for GraphQL.string
required
The GraphQL endpoint path (e.g.,
/graphql).string
required
A unique identifier for this operation.
object
Optional configuration object.
Outputs
The output format is the same as the Custom API client."api"
Discriminator for the response type.
number
The HTTP status code.
ResponseBody
The response body containing the GraphQL result.