View Source Ash.Resource.Relationships.BelongsTo (ash v3.4.3)

Represents a belongs_to relationship on a resource

Summary

Types

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