wp-graphql / wp-graphql-woocommerce

Add WooCommerce support and functionality to your WPGraphQL server
https://woographql.com
GNU General Public License v3.0
642 stars 130 forks source link

`products` query fails with the `where` `search` param #867

Closed daguitosama closed 3 months ago

daguitosama commented 3 months ago

Describe the bug When attempting to run a products query to get products filtered with the search param of the where filter. The API returns an error like:

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

The complete error (with DEBUG mode on):

{
  "errors": [
    {
      "message": "The \"mczr\" product type is not supported by the core WPGraphQL WooCommerce (WooGraphQL) schema.",
      "extensions": {
        "category": "user"
      },
      "locations": [
        {
          "line": 4,
          "column": 7
        }
      ],
      "path": [
        "products",
        "edges",
        4,
        "node"
      ]
    }
  ],
  "data": {
    "products": null
  },
  "extensions": {
    "debug": [
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.price(format:)\" expected to be of type \"PricingFieldFormatEnum\" but got \"PricingFieldFormatEnum\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      },
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.regularPrice(format:)\" expected to be of type \"PricingFieldFormatEnum\" but got \"PricingFieldFormatEnum\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      },
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.salePrice(format:)\" expected to be of type \"PricingFieldFormatEnum\" but got \"PricingFieldFormatEnum\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      },
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.metaData(key:)\" expected to be of type \"String\" but got \"String\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      },
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.metaData(keysIn:)\" expected to be of type \"[String]\" but got \"[String]\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      },
      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"ProductVariation.metaData(multiple:)\" expected to be of type \"Boolean\" but got \"Boolean\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:241",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:75",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:113",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:163",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Type/WPObjectType.php:91",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:829",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:228",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/WPGraphQL.php:722",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:324",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp-hook.php:348",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/plugin.php:565",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:418",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/class-wp.php:813",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-includes/functions.php:1336",
          "/redacted/path/Local Sites/site-with-error/app/public/wp-blog-header.php:16",
          "/redacted/path/Local Sites/site-with-error/app/public/index.php:17"
        ]
      }
    ],
    "queryAnalyzer": {
      "keys": "e868418833eac6c420be3157db52f7601782d47c17bfec77d9f1d85bf117e931 graphql:Query operation:ProductSearch list:variableproduct list:externalproduct list:groupproduct list:simpleproduct list:simpleproductvariation",
      "keysLength": 209,
      "keysCount": 8,
      "skippedKeys": "",
      "skippedKeysSize": 0,
      "skippedKeysCount": 0,
      "skippedTypes": []
    }
  }
}

I faced this issue before using simpler product queries, like with out where filters, and after updating WPGraphQL WooCommerce (WooGraphQL) v13 to v20 this error got away. But somehow is still present, would like to ask if anyone had seem this type of error before, and has any idea how to fixit ?

To Reproduce Steps to reproduce the behavior:

  1. Having the base Woocomerce products setup, and some sample products
  2. Go to the GraphiQL IDE window
  3. Run this query
    query ProductSearch {
    products(where: {search: "B"}) {
    edges {
      node {
        id
        name
        slug
      }
    }
    }
    }
  4. See the error (the same described on Issue description)

Expected behavior Be able to get the products result back with out any errors.

Screenshots

Screenshot 2024-06-07 at 6 50 09 PM

Desktop (please complete the following information):

Plugin Versions

Additional context I have several plugins running on the site.

kidunot89 commented 3 months ago

@daguitosama Is the Enable Unsupported types setting on?

daguitosama commented 3 months ago

@kidunot89 in deed! That fixed the query! Thanks su much for the note. Hope other folks find it to when this error pops out. I think I could close the issue now.

kidunot89 commented 3 months ago

@daguitosama this is truly on me, I need to improve the documentation around the settings. And it might be better for all users if that setting is enabled by default.

daguitosama commented 3 months ago

I think if having it on, would not make any conflict with other potential first level thing, like I think it wont, since you could not use the products queries properly to beguin with, would be nice to get it on out of the box.