Skip to content

Commit fea45aa

Browse files
authored
use correct cursor key
1 parent fd3e506 commit fea45aa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ayon_api/graphql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,11 @@ def calculate_query(self) -> str:
10101010
# Add page information
10111011
output.append(edges_offset + "pageInfo {")
10121012
for page_key in (
1013-
"endCursor",
1013+
(
1014+
"endCursor"
1015+
if self._order == SortOrder.ascending
1016+
else "startCursor"
1017+
),
10141018
(
10151019
"hasNextPage"
10161020
if self._order == SortOrder.ascending

0 commit comments

Comments
 (0)