We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec7151 commit fd3e506Copy full SHA for fd3e506
1 file changed
ayon_api/graphql.py
@@ -943,6 +943,12 @@ def parse_result(
943
change_cursor = False
944
945
if change_cursor and self._need_query:
946
+ if new_cursor == self._cursor:
947
+ raise GraphQlQueryError(
948
+ "Cursor didn't change during pagination."
949
+ " This can cause infinite loop."
950
+ )
951
+
952
for child in self._children_iter():
953
child.reset_cursor()
954
self._cursor = new_cursor
0 commit comments