Ash.Resource.Relationships.HasOne (ash v1.44.3) View Source

Represents a has_one relationship on a resource

Link to this section Summary

Link to this section Types

Specs

t() :: %Ash.Resource.Relationships.HasOne{
  allow_orphans?: boolean(),
  cardinality: :one,
  context: term(),
  description: String.t(),
  destination: Ash.Resource.t(),
  destination_field: atom(),
  filter: Ash.Filter.t(),
  name: atom(),
  not_found_message: term(),
  private?: boolean(),
  read_action: atom(),
  sort: term(),
  source: Ash.Resource.t(),
  source_field: atom(),
  type: :has_one,
  violation_message: term(),
  writable?: boolean()
}