#
View Source Ash.Resource.ManualRead behaviour (ash v2.4.22)

A module to implement manual read actions.

# Link to this section Summary

## Types

context()

## Callbacks

read( query, data_layer_query, opts, context )

# Link to this section Types

Link to this type

# context()

View Source

    @type context() :: %{actor: term(), tenant: term(), authorize?: term(), api: module()}

# Link to this section 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()}