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

Represents a belongs_to relationship on a resource

Link to this section Summary

Link to this section Types

Specs

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