-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for custom types and custom taxonomies #38
base: main
Are you sure you want to change the base?
Conversation
], | ||
'and' => [ | ||
'type' => [ 'list_of' => 'TaxonomyFilter' ], | ||
'and' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you h8 linting? 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was the linter that complained :D
I tried it, and it's break GraphQL IDE in wordpress admin. If I open the IDE only shows the loading indicator. |
@draxvint Can you try again with the latest on this branch https://github.com/wpengine/wp-graphql-filter-query/tree/add-support-for-custom-taxonomies |
Reference: #37
Example: Given a CPT called
rabbits
that has a custom taxonomy calledsport
Retrieves a collection of
rabbits
filtered by the custom taxonomy 'sport', with a filter on the taxonomy 'name' field for the term 'football'.Query Parameters:
filter: An object representing the filter to apply to the rabbit collection.
filter.sport.name: A string representing the name of the sport term to filter on.
Example:
In this example, the query retrieves a collection of
rabbits
that have the term 'football' associated with the custom taxonomy 'sport'. The nodes field specifies which fields to return for each rabbit, in this case just the title.