View Source Ash.Resource.Relationships.BelongsTo (ash v2.18.2)

Represents a belongs_to relationship on a resource

Summary

Types

@type t() :: %Ash.Resource.Relationships.BelongsTo{
  allow_nil?: boolean(),
  api: term(),
  attribute_type: term(),
  attribute_writable?: boolean(),
  cardinality: :one,
  context: term(),
  define_attribute?: boolean(),
  description: String.t(),
  destination: Ash.Resource.t(),
  destination_attribute: atom(),
  filter: Ash.Filter.t() | nil,
  filterable?: boolean(),
  name: atom(),
  not_found_message: term(),
  primary_key?: boolean(),
  private?: boolean(),
  read_action: atom(),
  sort: term(),
  source: Ash.Resource.t(),
  source_attribute: atom() | nil,
  type: :belongs_to,
  validate_destination_attribute?: term(),
  violation_message: term(),
  writable?: boolean()
}