Describe the bug
I think I have discovered a bug with WooGraphQL (v0.10.3+). It looks like graphQL is not recognizing product types and throwing errors like "This product of ID x is not a xyz product”.
To Reproduce
Steps to reproduce the behavior:
Create a fresh install of WordPress.
Install and activate WooCommerce.
Create a sample simple product.
Install and activate the latest wp-graphql and wp-graphql-woocommerce plugins.
Go to the GraphiQL IDE.
Create a query that gets a simpleProduct. Example:
query MyQuery {
simpleProduct(id: "12", idType: DATABASE_ID) {
id
name
}
}
This will display an error message like "message": "This product of ID 12 is not a SimpleProduct product".
Expected behavior
The result should be successful.
Screenshots
Attached.
Desktop (please complete the following information):
Device: MacBook Pro (16")
OS: 12.0.1
Browser: Firefox
Version: 94.0.2
Plugin Versions
**WooGraphQL Version: 0.10.6
**WPGraphQL Version: 1.6.7
**WordPress Version: 5.8.2
**WooCommerce Version: 5.9.0
Additional context
I will create a pull request for this.
Describe the bug I think I have discovered a bug with WooGraphQL (v0.10.3+). It looks like graphQL is not recognizing product types and throwing errors like "This product of ID x is not a xyz product”.
To Reproduce Steps to reproduce the behavior:
query MyQuery { simpleProduct(id: "12", idType: DATABASE_ID) { id name } }
Expected behavior The result should be successful.
Screenshots Attached.
Desktop (please complete the following information):
Plugin Versions
Additional context I will create a pull request for this.