Ash.Changeset.append_to_relationship
You're seeing just the function
append_to_relationship
, go back to Ash.Changeset module for more information.
Link to this function
append_to_relationship(changeset, relationship, record_or_records, opts \\ [])
View SourceSpecs
append_to_relationship( t(), atom(), Ash.Resource.record() | map() | term() | [Ash.Resource.record() | map() | term()], Keyword.t() ) :: t()
Appends a record or a list of records to a relationship.
Alias for:
manage_relationship(changeset, relationship, input,
on_lookup: :relate, # If a record is not in the relationship, and can be found, relate it
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 don't change it
on_missing: :ignore, # If a record is not found in the input, we ignore it
)
Provide opts
to customize/override the behavior.