Ash.Changeset.replace_relationship
You're seeing just the function
replace_relationship
, go back to Ash.Changeset module for more information.
Link to this function
replace_relationship(changeset, relationship, record_or_records, opts \\ [])
View SourceSpecs
replace_relationship( t(), atom(), Ash.Resource.record() | map() | term() | [Ash.Resource.record() | map() | term()] | nil, Keyword.t() ) :: t()
Alias for:
manage_relationship(
changeset,
relationship,
record_or_records,
on_lookup: :relate, # If a record is not found in the relationship, but is found in the database, relate it and apply the input as an update
on_no_match: :error, # If a record is not found in the relationship or the database, we error
on_match: :ignore, # If a record is found in the relationship we make no changes to it
on_missing: :unrelate, # If a record is not found in the relationship, we unrelate it
authorize?: false
)