Gatsby & Wordpress - 5.3. - Increasing WPGraphQL Query Limit

Опубликовано: 07 Июнь 2026
на канале: whatjackhasmade
825
9

Article on Video (formatted description) - https://whatjackhasmade.co.uk/gatsby-...

In this video, we will increase the maximum queryable nodes returned by a single GraphQL query in WPGraphQL from 100 items to 300+ items.

The current version of WPGraphQL (0.4.1) limits the number of posts you can query from the /graphql endpoint to 100 items.

Even with filter parameters used within a GraphQL query (e.g. first:300), our JSON response will be limited to 100 items.

To get around this issue, we can modify our WordPress theme's functions.php file to increase the GraphQL query limit.