WPGraphQL - How to fetch data based on a Where attribute?

68 views Asked by At

I have created a post type called LearnArticles in wordpress and another post type Learn Categories. Now I have linked both of them and I can access the Learn Categories data under the Learn Articles. But when I am trying to fetch data of a particular category I am unable to find the Learn Categories field in the Where attribute of the Learn Articles.

enter image description here

But on the default post category, there is an option to filter using the category ID.

enter image description here

How can I get my custom category type (Learn Category) in the Where attribute?

0

There are 0 answers