Custom Fields

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.

View Recipe

Add field to output URLs for Sitemap

The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap.

View Recipe

List of Key Values

This is an example showing how to return a list of keys and values where the keys and values are both strings.

View Recipe