Closed vstrelianyi closed 3 years ago
query MyQuery { productCategories(where: {language: ZH}) { edges { node { id name products { nodes { name id } } } } } }
I can get the language by "productCategories", then get the products from the category.
Hm.. it seems that there is no "language" filter field in the schema , so I'm getting an error
Just fresh install a demo project. I have it with the latest version 0.5.0 of this plugin.
https://github.com/valu-digital/wp-graphql-polylang/releases
ok, I have found the issue I needed to check the Product categories box in Polylang settings
@sslnyx thx for your time the issue is closed, I hope our dialog will be useful for others who might face it.. )
No language field in where:{ } parameter when querying woocommerce products