Skip to content

[gatsby-source-wordpress] Unable to query WP Settings #5689

@Adam-Mould

Description

@Adam-Mould

I've configured 'gatsby-source-wordpress' to enable authentication, and when running gatsby develop I successfully see the following output when using the verboseOutput option;

=== [ Fetching wordpress__wp_settings ] === {URL}/wp-json/wp/v2/settings ⠂ source and transform nodes -> wordpress__wp_settings fetched : 1 Fetching the wordpress__wp_settings took: 92.392ms

Based upon the Query any other entity documentation, the GraphQL type should look like "allWordpressWpSettings". But when trying to query this in GraphiQL I receive the following error;

Cannot query field "allWordpressWpSettings" on type "RootQueryType".

I've also tried just "wordpressWpSettings" but that returns the same error.

I'm able to access other query types that required authentication (e.g. "allWordpressWpMe"), but having no luck with accessing Settings. I've ran a curl request to the "/wp-json/wp/v2/settings" endpoint and I can see the desired response, so it's not my WP instance that's causing the issue.

Any help would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions