View Source Ash.Resource.ManualRelationship behaviour (ash v2.4.12)

A module to implement manual relationships.

Link to this section Summary

Link to this section Types

@type context() :: %{
  relationship: Ash.Resource.Relationships.relationship(),
  query: Ash.Query.t(),
  root_query: Ash.Query.t(),
  actor: term(),
  tenant: term(),
  authorize?: term(),
  api: module()
}

Link to this section Callbacks

Link to this callback

load( list, opts, context )

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