Skip to content

WPGraphQL

Free open-source WordPress plugin that turns any WordPress site into a GraphQL API

Tag Archives:

Remove Extensions from GraphQL Response

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

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. Sometimes, you want to expose fields that are restricted by default. Take the Post Type Label field, for example. Querying for the label of …

Continue reading “Showing Post Type labels in public queries”

Changing the Server Debug Flag

The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track this data on the server, for example, even for public requests, and send the data to a logging …

Continue reading “Changing the Server Debug Flag”

Recent Posts

  • Announcing the WPGraphQL REPL
  • Customizing GraphQL Cache Keys
  • Introducing WPGraphQL Smart Cache
  • New Post Type and Taxonomy Registration options
  • Tutorial: Registering a Custom Post Type as a GraphQL Interface

Recent Comments

  • RangerCoder on Forward and Backward Pagination with WPGraphQL
  • mvaneijgen on Query posts based on Advanced Custom Field values by Registering a Custom “where” Argument
  • Lance on Query posts based on Advanced Custom Field values by Registering a Custom “where” Argument
  • mvaneijgen on Query posts based on Advanced Custom Field values by Registering a Custom “where” Argument
  • Hatem on Query posts based on Advanced Custom Field values by Registering a Custom “where” Argument

Archives

  • June 2023
  • May 2023
  • December 2022
  • October 2022
  • February 2022
  • December 2021
  • August 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • April 2019
  • March 2019
  • January 2019
  • November 2018
  • February 2018
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017

Categories

  • Announcements
  • Gatsby
  • GraphQL
  • Gutenberg
  • NextJS
  • Pair Programming
  • Reflection
  • Tutorials
  • Updates
  • Video
  • Vue
  • WordPress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
WPGraphQL, Proudly powered by WordPress.