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

Interface field argument error in GraphQL IDE after update to WPGraphQL 1.26 #240

Open
traed opened this issue May 10, 2024 · 0 comments
Open

Comments

@traed
Copy link

traed commented May 10, 2024

I'm getting the following error since I updated WPGraphQL from version 1.24 to 1.26. I'm guessing they've done some changes to field definitions but since it's referring to editorBlocks I'm opening the issue here. Any idea what this might be?

      {
        "type": "GRAPHQL_DEBUG",
        "message": "Interface field argument \"NodeWithPostEditorBlocks.editorBlocks(flat:)\" expected to be of type \"Boolean\" but got \"Boolean\". Please ensure the field arguments match the interface field arguments or rename the argument.",
        "stack": [
          "/var/www/html/wp-content/plugins/wp-graphql/src/Type/WPInterfaceTrait.php:238",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Type/WPInterfaceType.php:49",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:825",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:714",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:847",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:226",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:224",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php:876",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Registry/SchemaRegistry.php:44",
          "/var/www/html/wp-content/plugins/wp-graphql/src/WPGraphQL.php:704",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Request.php:155",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Router.php:461",
          "/var/www/html/wp-content/plugins/wp-graphql/src/Router.php:257",
          "/var/www/html/wp-includes/class-wp-hook.php:324",
          "/var/www/html/wp-includes/class-wp-hook.php:348",
          "/var/www/html/wp-includes/plugin.php:565",
          "/var/www/html/wp-includes/class-wp.php:418",
          "/var/www/html/wp-includes/class-wp.php:813",
          "/var/www/html/wp-includes/functions.php:1336",
          "/var/www/html/wp-blog-header.php:16",
          "/var/www/html/index.php:17"
        ]
      },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants