Gaiia.Response (Gaiia v0.2.0)

Copy Markdown View Source

A successful GraphQL response, with the transport metadata kept.

Gaiia.Client.query/4 unwraps this to {:ok, data} because that is what most call sites want. Use Gaiia.Client.request/4 instead when you need the rate-limit budget or the raw headers, for example to throttle a bulk job.

Summary

Types

t()

@type t() :: %Gaiia.Response{
  data: map(),
  headers: map(),
  rate_limit: Gaiia.RateLimit.t() | nil,
  status: pos_integer()
}