AshGraphql.Dataloader (ash_graphql v0.20.0-rc.2) View Source

The dataloader in charge of resolving

Link to this section Summary

Functions

Create an Ash Dataloader source. This module handles retrieving data from Ash for dataloader. It requires a valid Ash API.

Link to this section Types

Specs

api_opts() :: Keyword.t()

Specs

batch_fun() ::
  (Ash.Resource.t(), Ash.Query.t(), any(), [any()], api_opts() -> [any()])

Specs

t() :: %AshGraphql.Dataloader{
  api: Ash.Api.t(),
  batches: map(),
  default_params: map(),
  results: map()
}

Link to this section Functions

Specs

new(Ash.Api.t()) :: t()

Create an Ash Dataloader source. This module handles retrieving data from Ash for dataloader. It requires a valid Ash API.