wp-graphql / wp-graphql-woocommerce

Add WooCommerce support and functionality to your WPGraphQL server
https://woographql.com
GNU General Public License v3.0
645 stars 130 forks source link

Missing pageInfo fields #808

Open andriuszibaitis opened 1 year ago

andriuszibaitis commented 1 year ago

Describe the bug When I attempt to use WPGraphQL WooCommerce (WooGraphQL) in conjunction with gatsby-source-woocommerce, I encounter numerous errors related to missing pageInfo fields.

To Reproduce Steps to reproduce the behavior:

1. Install WPGraphQL and WPGraphQL WooCommerce (WooGraphQL) on a WordPress site.
2. Install gatsby-source-woocommerce on a Gatsby project and configure it as per the provided configuration.
3. Run gatsby develop.
Observe the errors in the console.

Expected behavior I expected the gatsby-source-woocommerce to communicate seamlessly with my WordPress site through WPGraphQL WooCommerce (WooGraphQL).

Screenshots Screenshot 2023-09-25 at 20 05 59 Screenshot 2023-09-25 at 20 05 47 Screenshot 2023-09-25 at 20 05 26

Plugin Versions: WooGraphQL Version: 0.18.0 WPGraphQL Version: 1.16.0 WordPress Version: 6.3.1 WooCommerce Version: 8.1.1

I also use this plugins (I tried deactivate this plugins): WPGraphQL for Advanced Custom Fields Version: 0.6.1 WP GraphQL Polylang: 0.6.0 WP Gatsby: 2.3.3

The issue first arose right after I installed WPGraphQL WooCommerce (WooGraphQL).

rlc4 commented 1 year ago

From the earlier messages about what was imported from woocommerce with the warning that it generated no nodes, these graphql elements will not be available for queries and cause errors.

I'm assuming your woocommerce has more than 0 items in it, so verify your configuration and keys are the correct ones. I expect once you are importing some items, these errors will go away.

If you want to share your woocommerce plugin config (without any API keys or other sensitive data) someone with experience with that plugin may have additional advice.