Reputation: 21
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?
Upvotes: 1
Views: 1911
Reputation: 51
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
.
Upvotes: 5