#
View Source Ash.Changeset.ManagedRelationshipHelpers (ash v2.4.22)

Tools for introspecting managed relationships.

Extensions can use this to look at an argument that will be passed to a `manage_relationship` change and determine what their behavior should be. For example, AshAdmin uses these to find out what kind of nested form it should offer for each argument that manages a relationship.

# Link to this section Summary

## Functions

could_create?(opts)
could_handle_missing?(opts)
could_lookup?(opts)
could_update?(opts)
must_load?(opts, must_load_opts \\ [])
on_lookup_read_action(opts, relationship)
on_lookup_update_action(opts, relationship)
on_match_destination_actions(opts, relationship)
on_missing_destination_actions(opts, relationship)
on_no_match_destination_actions(opts, relationship)
sanitize_opts(relationship, opts)

# Link to this section Functions

Link to this function

# could_create?(opts)

View Source
Link to this function

# could_handle_missing?(opts)

View Source
Link to this function

# could_lookup?(opts)

View Source
Link to this function

# could_update?(opts)

View Source
Link to this function

# must_load?(opts, must_load_opts \\ [])

View Source
Link to this function

# on_lookup_read_action(opts, relationship)

View Source
Link to this function

# on_lookup_update_action(opts, relationship)

View Source
Link to this function

# on_match_destination_actions(opts, relationship)

View Source
Link to this function

# on_missing_destination_actions(opts, relationship)

View Source
Link to this function

# on_no_match_destination_actions(opts, relationship)

View Source
Link to this function

# sanitize_opts(relationship, opts)

View Source