How to do an Ecto upsert query in Ash?

Ash.Changeset.apply_attributes/2 lets you take the changes done so far in the changeset and get a struct with those values, which should include the generated fields.

1 Like