Closed zachdaniel closed 2 years ago
At the moemnt, the code for things like add_to_relationship is actually using what is now currently considered an escape hatch, i.e:
add_to_relationship
result |> Ash.Changeset.new() |> Ash.Changeset.append_to_relationship(relationship_name, request.resource_identifiers) |> Ash.Changeset.for_update(action, %{}, Request.opts(request)) |> api.update()
We should instead require that these routes choose an action that has an argument of a specific name, and then those actions will be used. i.e
post_to_relationship :comments, :update, :add_comments
Closing this in favor of #56
At the moemnt, the code for things like
add_to_relationship
is actually using what is now currently considered an escape hatch, i.e:We should instead require that these routes choose an action that has an argument of a specific name, and then those actions will be used. i.e