Skip to content
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

Cannot query subcategories of productCategories #828

Open
sheinid opened this issue Dec 23, 2023 · 1 comment
Open

Cannot query subcategories of productCategories #828

sheinid opened this issue Dec 23, 2023 · 1 comment

Comments

@sheinid
Copy link

sheinid commented Dec 23, 2023

productCategories query not returning subcategories

To Reproduce

  1. Go to GraphiQl IDE
  2. Write the provided query
  3. See the error
query GetProductCategories {
  productCategories(where: {parent: 0}) {
    nodes {
      slug
      name
      children {
        nodes {
          name
          slug
        }
      }
    }
  }
}

Expected behavior
The api should return subcategories in children field.

Screenshots
The query and the response.
image

The list of categories
image

Desktop:

  • OS: Windows 11
  • Browser chrome
  • Version 120

Plugin Versions

  • WooGraphQL Version: 0.18.0
  • WPGraphQL Version: 1.16.0
  • WordPress Version: 6.3.1
  • **WooCommerce Version: 8.1.1 **

Additional context
It worked before, but one day it just stopped to retrieve the subcategories of productCategories.

@kidunot89
Copy link
Member

@sheinid Upgrade to WooGraphQL v0.19.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants