Add the action to read AuthorRoles by a Book id.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 3 months ago
parent 8cfac66a56
commit 10b34b4980

@ -39,6 +39,11 @@ defmodule DecentralisedBookIndex.Metadata.AuthorRole do
filter expr(id == ^arg(:id)) filter expr(id == ^arg(:id))
end end
read :by_book_id do
argument :book_id, :uuid, allow_nil?: false
filter expr(book_id == ^arg(:book_id))
end
update :update do update :update do
primary? true primary? true
accept [:order, :role] accept [:order, :role]

Loading…
Cancel
Save