Closed bkstorm closed 1 week ago
@bkstorm Have you tried this with the latest version v0.21.x
?
@bkstorm Have you tried this with the latest version
v0.21.x
?
I tried with v0.21, it did not work.
Same problem. In v0.21.0 it does return some products right(apparently), but it doesn't return all of them, nor the pageInfo correctly. The plugin is unusable.
For some reason the products that you query from inside the productCategories type, requires you to still provide the categoryId(databaseId) in the where clause in the product query.
products(first: 12, after: $after, where: { categoryId: $databaseId, stockStatus: IN_STOCK, status: "PUBLISH" }) { }
For some reason the products that you query from inside the productCategories type, requires you to still provide the categoryId(databaseId) in the where clause in the product query.
products(first: 12, after: $after, where: { categoryId: $databaseId, stockStatus: IN_STOCK, status: "PUBLISH" }) { }
This seems to have been fixed in v0.21.0
I tried again with v0.21.0 today, and it works as expected. It seems like there is something wrong with my code, not wp-graphql, so I will close this issue. Thanks!
Describe the bug The list of products of a category is not correct.
To Reproduce Steps to reproduce the behavior:
Expected behavior Product 1 should belong to the Category 1, Product 2 should belong to the Category 2.
Actual behavior Product 1 belongs to both Category 1 and Category 2. Product 2 belongs to both Category 1 and Category 2.
Screenshots
Desktop (please complete the following information):
Plugin Versions