Skip to content

Commit a1a4287

Browse files
committed
feat: paginate file_download_requests with relay
Add `file_download_requests: :relay` to `paginate_relationship_with` in `Device`, enabling cursor-based pagination over a device's file download requests consistent with other paginated relationships. Signed-off-by: Omar <omar.brbutovic@secomind.com>
1 parent 9abd9bc commit a1a4287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/lib/edgehog/devices/device/device.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ defmodule Edgehog.Devices.Device do
6161
# datalayer subqueries so Ash can compose and support the functionality.
6262
paginate_relationship_with application_deployments: :relay,
6363
ota_operations: :relay,
64-
tags: :relay
64+
tags: :relay,
65+
file_download_requests: :relay
6566

6667
subscriptions do
6768
pubsub EdgehogWeb.Endpoint

0 commit comments

Comments
 (0)