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

"The \"variation\" product type is not supported by the core WPGraphQL WooCommerce (WooGraphQL) schema." #502

Closed
Robak08 opened this issue Jun 1, 2021 · 3 comments · Fixed by #833
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Robak08
Copy link

Robak08 commented Jun 1, 2021

Hi, when running query for customer downloadableItems like this:

 customer {
    downloadableItems {
      nodes {
        accessExpires
        download {
          fileExists
          fileExt
        }
        downloadId
        downloadsRemaining
        url
        product {
          id
        }
      }
    }
  }

Whenever there is product connector in query - for corresponding product of Variable Type - server responds with error :

 "errors": [
    {
      "message": "The \"variation\" product type is not supported by the core WPGraphQL WooCommerce (WooGraphQL) schema.",
      "extensions": {
        "category": "user"
      },
      "locations": [
        {
          "line": 13,
          "column": 9
        }
      ],
      "path": [
        "customer",
        "downloadableItems",
        "nodes",
        0,
        "product"
      ]
    },
@kidunot89 kidunot89 added the bug Something isn't working label Jun 13, 2021
@kidunot89 kidunot89 self-assigned this Jun 13, 2021
@kidunot89 kidunot89 added this to the v0.11.0 milestone Feb 2, 2022
@victormattosvm
Copy link
Contributor

victormattosvm commented Feb 7, 2022

I had a similar problem with the Order model and it was because the product got removed after the order was done, so the model couldn't find it. In my case, I've added a "name" field on lineItems to display the order item name. I'm not using "product" or "variation" anymore.

@marlonjet
Copy link

I'm having the same issue, How can I solve it ?

@joshghent
Copy link

I also am facing this issue. I have narrowed it down to the WPC Grouped Product for WooCommerce plugin.
It brings back the error: The \"woosg\" product type is not supported by the core WPGraphQL WooCommerce (WooGraphQL) schema.

Thanks for a fantastic piece of software, hope I can get it working soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants