Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support for custom types and custom taxonomies#38

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
ToughCrab24 wants to merge9 commits intomain
base:main
Choose a base branch
Loading
fromadd-support-for-custom-taxonomies

Conversation

@ToughCrab24
Copy link
Member

@ToughCrab24ToughCrab24 commentedApr 11, 2023
edited
Loading

Reference:#37

Example: Given a CPT calledrabbits that has a custom taxonomy calledsport

Retrieves a collection ofrabbits 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:

{rabbits(filter: {sport: {name: {eq:"football"}}}) {nodes {title    }  }}

In this example, the query retrieves a collection ofrabbits 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.

nestarz reacted with hooray emoji
],
'and' => [
'type' => ['list_of' =>'TaxonomyFilter' ],
'and' => [
Copy link
Collaborator

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? 😛

Copy link
MemberAuthor

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

@ToughCrab24ToughCrab24 changed the titleAdd support for custom types and custom taxonomiesfeat: Add support for custom types and custom taxonomiesMay 31, 2023
@draxvint
Copy link

I tried it, and it's break GraphQL IDE in wordpress admin. If I open the IDE only shows the loading indicator.

@ToughCrab24
Copy link
MemberAuthor

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@richard-wpenginerichard-wpenginerichard-wpengine left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@ToughCrab24@draxvint@richard-wpengine

[8]ページ先頭

©2009-2025 Movatter.jp