View Source AshGraphql.Dataloader (ash_graphql v0.25.7)

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

@type api_opts() :: Keyword.t()
@type batch_fun() ::
  (Ash.Resource.t(), Ash.Query.t(), any(), [any()], api_opts() -> [any()])
@type t() :: %AshGraphql.Dataloader{
  api: Ash.Api.t(),
  batches: map(),
  default_params: map(),
  results: map()
}

Link to this section Functions

@spec 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.