wp-graphql-woocommerce icon indicating copy to clipboard operation
wp-graphql-woocommerce copied to clipboard

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

Open Robak08 opened this issue 3 years ago • 1 comments

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"
      ]
    },

Robak08 avatar Jun 01 '21 08:06 Robak08

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.

victormattosvm avatar Feb 07 '22 03:02 victormattosvm

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

marlonjet avatar Feb 07 '23 14:02 marlonjet

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 :)

joshghent avatar Feb 28 '23 10:02 joshghent