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:
The HTTP method to use. Typically
"POST" for GraphQL.The GraphQL endpoint path (e.g.,
/graphql).A unique identifier for this operation.
Optional configuration object.
Outputs
The output format is the same as the Custom API client.Discriminator for the response type.
The HTTP status code.
The response body containing the GraphQL result.