Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

Recipes: Schema Customization

Deprecating a field in the Schema

Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether.

Custom FieldsSchema Customization

Register a basic Mutation

This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output.