diff --git a/packages/gatsby-source-contentful/src/fetch.js b/packages/gatsby-source-contentful/src/fetch.js index 0c4e09f224189..44c70ccd2b2b6 100644 --- a/packages/gatsby-source-contentful/src/fetch.js +++ b/packages/gatsby-source-contentful/src/fetch.js @@ -148,7 +148,14 @@ function pagedGet( aggregatedResponse.items = aggregatedResponse.items.concat(response.items) } if (skip + pageLimit <= response.total) { - return pagedGet(client, method, skip + pageLimit, aggregatedResponse) + return pagedGet( + client, + method, + query, + skip + pageLimit, + pageLimit, + aggregatedResponse + ) } return aggregatedResponse })