From b9c43b9ef6d090aed44d481dfd26db4bcbb07f78 Mon Sep 17 00:00:00 2001 From: Miroslav Hudec Date: Tue, 12 Mar 2024 14:56:30 +0100 Subject: [PATCH] Fix cursor in queries --- .../resource_manager_worker.py | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/frinx_conductor_workers/frinx_conductor_workers/resource_manager_worker.py b/frinx_conductor_workers/frinx_conductor_workers/resource_manager_worker.py index 33b5e04..59c7a50 100644 --- a/frinx_conductor_workers/frinx_conductor_workers/resource_manager_worker.py +++ b/frinx_conductor_workers/frinx_conductor_workers/resource_manager_worker.py @@ -105,9 +105,7 @@ {{ input }}) { edges { - cursor { - ID - } + cursor node { id Properties @@ -173,9 +171,7 @@ query QueryResourcesByAltId($poolId: ID, $input: Map!, $first: Int, $last: Int, $after: String, $before: String) { QueryResourcesByAltId(input: $input, poolId: $poolId, first: $first, last: $last, after: $after, before: $before) { edges { - cursor { - ID - } + cursor node { id Properties @@ -258,9 +254,7 @@ Name } } - cursor{ - ID - } + cursor } } } @@ -356,9 +350,7 @@ def query_claimed_resources(task, logs): "data": { "": { edges [ - cursor { - - } + cursor: "" node { "id": "", "Properties": { @@ -1468,9 +1460,7 @@ def query_recently_active_resources(task, logs): Name } } - cursor{ - ID - } + cursor: "" } } }