#
View Source Ash.Resource.Relationships.BelongsTo (ash v2.4.22)

Represents a belongs_to relationship on a resource

# Link to this section Summary

## Types

t()

# Link to this section Types

Link to this type

# t()

View Source

    @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()
    }