Describe the bug
I have a Category resource I need to filter by report_id
actions do
create :create do
argument :report_id, :uuid do
allow_nil? false
end
change manage_relationship(:report_id, :report, type: :append_and_remove)
end
read :read do
argument :report_id, :uuid do
allow_nil? false
end
filter expr(report_id == ^arg(:report_id))
end
read :report_categories do
argument :report_id, :uuid do
allow_nil? false
end
filter expr(report_id == ^arg(:report_id))
end
end
json_api do
# Specify a json:api resource type
type "categories"
routes do
base "/categories"
index :report_categories
end
end
Describe the bug I have a
Category
resource I need to filter byreport_id
If I try to get `http://localhost:4001/categories?report_id=c693adaa-144a-429d-9056-e2acda624fa0
I receive this error:
Expected behavior I expect the action to return all the categories with report_id = c693adaa-144a-429d-9056-e2acda624fa0
** Runtime
Sorry I've been banned again from Discord and I'm not able to get access back :(