Pagination broke on different $first numbers #24402
-
I’m sending the following GraphQL API query. It returns 183 repos. However, it seems I can only set the ‘first’ argument in the search term as 10 and 11, any other number would not work. I’m not sure if is it a known problem, or this number depends on what fields I put in the query?
Thanks in advance for any responses or suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the interesting question! All GraphQL queries are given an upper bound of ten seconds to execute or a timeout error occurs. Some nodes are more expensive to query than others and will take more time. This means that some complex queries will be closer to the edge and may require restricting the amount of data you request in order for them to execute successfully. In this case, your query can only request the information from 10 or 11 repositories before it goes across the 10s barrier. I hope that helps! |
Beta Was this translation helpful? Give feedback.
Thanks for the interesting question!
All GraphQL queries are given an upper bound of ten seconds to execute or a timeout error occurs. Some nodes are more expensive to query than others and will take more time. This means that some complex queries will be closer to the edge and may require restricting the amount of data you request in order for them to execute successfully. In this case, your query can only request the information from 10 or 11 repositories before it goes across the 10s barrier.
I hope that helps!