Skip to content

WPGraphQL

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

Tag Archives:

Register object and field for custom list of users

The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the website, but custom logic could be added to return a curated list of users. You can now query …

Continue reading “Register object and field for custom list of users”

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.