-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPML with wp-graphql throwing error: Field "language" is not defined #811
Comments
Having same issue even in playground. I can query product by language, I can query posts where language all. But I can not query products where language all. No connection for products and languages. |
Looks like the where with language condition is not working anymore.
|
Can confirm, its not working. Did anyone find a workaround to query all products in another language? |
Describe the bug
I have a gatsby website where I use wordpress and woocommerce. Lately I installed WPML for multi language support and when I try to run project I got this error:
There was an error in your GraphQL query: Field "language" is not defined by type "WPWCContent_RootQueryToProductUnionConnectionWhereArgs".
It seems that I can't query posts based on language field. I can only get my original products without translation.
Things that might be worth noticing is that I use two plugins to source from wordpress:
gatsby-source-graphql
andgatsby-source-wordpress
. I do that to fetch optimised images fromgatsby-source-wordpress
(but it doesn't work with WPML). How can I fix it?Expected behavior
I would like to be able to fetch data from Woocommerce based on a language parameter.
Plugin Versions
The text was updated successfully, but these errors were encountered: