View Source Ash.Resource.ManualRead behaviour (ash v2.14.17)

A module to implement manual read actions.

Summary

Types

@type context() :: %{
  optional(:actor) => term(),
  optional(:tenant) => term(),
  optional(:authorize?) => boolean(),
  optional(:api) => module(),
  optional(any()) => any()
}

Callbacks

Link to this callback

read(query, data_layer_query, opts, context)

View Source
@callback read(
  query :: Ash.Query.t(),
  data_layer_query :: term(),
  opts :: Keyword.t(),
  context :: context()
) :: {:ok, [Ash.Resource.record()]} | {:error, term()}