gatsby-source-wordpress get all woocommerce products #30867
Replies: 1 comment
-
The plugin options you mentioned are to control performance when you build your schema, as to not overload your Wordpress backend. By default, the source plugin should be fetching ALL nodes, unless you have a limit set on the type (yours is set above the max number of products you have). You may want to look at this issue wp-graphql-woocommerce#474 as it seems directly related to what you're experiencing. The perPage matching the actual number of products you see is just a coincidence. You can validate this with other post types (e.g. try pages, posts, other CPTs). Try downgrading to wp-graphql-1.2.5 per the last comment and see if it works? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a WP site with the following plugins installed:
WP GraphQL - 1.3.5
WPGraphQL WooCommerce (WooGraphQL) - 0.8.1
How do I get all products (around 500) into my Gatsby site when using gatsby-source-wordpress (5.2.3). I can only get about 20 products, if I change the perPage property from 20 to 100 I get an error:
Here's my config:
Beta Was this translation helpful? Give feedback.
All reactions