Ash FrameworkAF
Ash Framework3y ago
49 replies
Jan Ulbrich

Update Route W/ Arguments

I have a read action (and JSON API route) that takes an alternative identifer :extid instead of looking for the :id column. Now I would like the same route as an alternative for updates, too.

The update understands the argument like the read does, but I don’t see how I can modifiy the query to read the correct record.

A
change
can have an optional where which takes a list of functions, but I don’t get what these functions should look like
Was this page helpful?