View Source Ash.Resource.Relationships.BelongsTo (ash v1.53.2)

Represents a belongs_to relationship on a resource

Link to this section Summary

Link to this section Types

@type t() :: %Ash.Resource.Relationships.BelongsTo{
  api: term(),
  attribute_writable?: boolean(),
  cardinality: :one,
  context: term(),
  define_field?: boolean(),
  description: String.t(),
  destination: Ash.Resource.t(),
  destination_field: atom(),
  field_type: term(),
  filter: Ash.Filter.t() | nil,
  name: atom(),
  not_found_message: term(),
  primary_key?: boolean(),
  private?: boolean(),
  read_action: atom(),
  required?: boolean(),
  sort: term(),
  source: Ash.Resource.t(),
  source_field: atom() | nil,
  type: :belongs_to,
  validate_destination_field?: term(),
  violation_message: term(),
  writable?: boolean()
}