This add-on enables an extensive integration with WPGraphQL.
Requirements
Requires WordPress 5.5+, Pods 2.8+, WPGraphQL 1.1.3+, and PHP 5.6+
Now available in Pods 2.9
Most of this Add-On has officially been merged into Pods 2.9+, but there are still separate features being developed for this Add-On in the future.
What does this add-on do?
This add-on provides context to the WPGraphQL plugin so that it can become aware of certain Pods-created Content Types and Custom Fields created with Pods.
Supported Content Types in Pods
- Post Types
- Taxonomies
- Users
- Media
- Comment
Coming soon: Support for Settings and Advanced Content Type pods to be available in WPGraphQL.
Getting started
Turn on the “Enable support in WPGraphQL” from the Edit Pod screen under the “WPGraphQL” tab.
Custom WPGraphQL names
You can define custom names to use in WPGraphQL instead of the plural/singular name you may already be using. It should be in the camelCase format with no special characters. These will be used to refer to the post type inside of GraphQL queries.
Relationship / File Formats
There are a few options available for each Relationship and File field. You can specify in the pod settings what to use for all of them or rely on per-field settings.
- Use per-field setting
- Connection (you can drill down through GraphQL to get whatever field(s) you would like!)
- ID only
- Title only
- View (or Asset) URL only
Field options
You can customize per-field how they will work with WPGraphQL.