ash v0.1.3 Ash.Resource.Relationships.ManyToMany View Source
Link to this section Summary
Link to this section Types
Link to this type
t()
View Sourcet() :: %Ash.Resource.Relationships.ManyToMany{
cardinality: :many,
destination: Ash.resource(),
destination_field: atom(),
destination_field_on_join_table: atom(),
name: atom(),
reverse_relationship: atom(),
source: Ash.resource(),
source_field: atom(),
source_field_on_join_table: atom(),
through: Ash.resource(),
type: :many_to_many
}
Link to this section Functions
Link to this function
new(resource, resource_name, name, related_resource, opts \\ [])
View Sourcenew( resource :: Ash.resource(), resource_name :: String.t(), name :: atom(), related_resource :: Ash.resource(), opts :: Keyword.t() ) :: {:ok, t()} | {:error, term()}