I'm want to fetch data from a wordpress site and currently when I pass the query to show all the pages the site has it only returns 10 of 64, is there an option under gatsby-source-graphql resolver in gatsby-config.js to show more results?
Asked
Active
Viewed 1,445 times
1
-
1Please provide some code, at least your `gatsby-config.js` or your GraphQL query. Check: https://stackoverflow.com/help/how-to-ask – Ferran Buireu Jul 30 '20 at 19:08
-
The problem is somehow with WP – gdfgdfg Dec 14 '20 at 23:32
-
Has anyone found a solution for this issue? – Jonathan Lauwers Apr 18 '21 at 10:59
-
I know that setting the limit on your query to a higher value with allow you to query up to a 100 items but I'm looking for a solution which allows you to query more than 100 items. – Jonathan Lauwers Apr 18 '21 at 11:00
1 Answers
5
I was experiencing the same issue with Graphql only returning the first 10 comments. I was able to get around this issue by specifying a first
value in my query.
query {
comments (first: 500) {
...
}
}
The current GraphQL Edge schema likely has 10 as a default value for first
.

Brandon
- 51
- 1
- 3