Extensions

    Remove Extensions from GraphQL Response

    This snippet removes the “extensions” from the GraphQL response:

    Showing Post Type labels in public queries

    WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests.

    Changing the Server Debug Flag

    The following snippets show how to change the Debug Flag for the GraphQL Server execution.