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

A module to implement manual relationships.

Summary

Types

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

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()}