• Resolved semiherdogan

    (@semiherdogan)


    Hi,

    I need a help with wp-graphql plugin.

    I can not use GraphQL IDE to check query results and it does not show the schema. It consoles the error below.

    “debugMessage”: “Call to undefined method WPGraphQL\Types::boolean()”,
    “message”: “Internal server error”,
    “extensions”: {
    “category”: “internal”
    },
    “locations”: [
    {
    “line”: 15,
    “column”: 5
    }
    ],
    “path”: [
    “__schema”,
    “types”
    ],
    “trace”: [
    {
    “file”: “…./public/wp-content/plugins/wp-graphql-meta/wp-graphql-meta.php”,
    “line”: 59,
    “function”: “WPGraphQL\Extensions\Meta\resolve_meta_type(‘boolean’, true)”
    },
    {
    “file”: “…./public/wp-content/plugins/wp-graphql-meta/wp-graphql-meta.php”,
    “line”: 27,
    “function”: “WPGraphQL\Extensions\Meta\add_meta_fields(array(49), ‘post’)”
    },

    The query on the IDE:

    query MyQuery {
    blogs{
    edges {
    node {
    slug
    }
    }
    }
    }

    The query response is as follow.

    {
    “errors”: [
    {
    “message”: “Cannot query field \”blogs\” on type \”RootQuery\”. Did you mean \”tags\”?”,
    “extensions”: {
    “category”: “graphql”
    },
    “locations”: [
    {
    “line”: 2,
    “column”: 3
    }
    ]
    }
    ],

    Any advice is appreciated.

    Regards

    Semih

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Joseph Fusco

    (@joefusco)

    Hey @semiherdogan, based on the error that was shared, it seems like the issue lies in the wp-graphql-meta plugin installed on that site – I suspect it’s this one, which hasn’t been updated in 7 years, which to be fair doesn’t always mean it’s outdated, but it doesn’t look active.

    • This reply was modified 5 months, 3 weeks ago by Joseph Fusco.
    Thread Starter semiherdogan

    (@semiherdogan)

    Thank you. It is of a client’s website, I was not sure about this plugin was actively used. I should have checked whether it was active or not. I deactivated the plugin and it displays the schema now. I appreciate for your reply.

    Plugin Support Joseph Fusco

    (@joefusco)

    Glad it’s working! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.