File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,12 @@ type UnifiedPaginationParams struct {
246
246
// ToGraphQLParams converts REST API pagination parameters to GraphQL-specific parameters.
247
247
// This converts page/perPage to first parameter for GraphQL queries.
248
248
func (u UnifiedPaginationParams ) ToGraphQLParams () GraphQLPaginationParams {
249
- // Convert page/perPage to GraphQL parameters
250
- // For GraphQL, we use 'first' for perPage and ignore page for the initial request
251
- // (subsequent requests would use 'after' cursor from previous response)
252
- first := int32 (u .PerPage )
249
+ perPage := u .PerPage
250
+ if perPage > 2147483647 {
251
+ perPage = 100
252
+ }
253
+ first := int32 (perPage )
254
+
253
255
return GraphQLPaginationParams {
254
256
First : & first ,
255
257
}
You can’t perform that action at this time.
0 commit comments