View Source Ash.Resource.ManualRelationship behaviour (ash v2.14.18)
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
@callback load( [Ash.Resource.record()], opts :: Keyword.t(), context :: context() ) :: {:ok, map()} | {:error, term()}