gatsby-source-graphql only shows 10 results

1.7k Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.