So in the last few days I tried to get only Wordpress posts with a passed variable (id of a category)...
I am creating category sites in gatsby-node, which uses my category template.
Is there a simple way in GraphQL to filter after categories with this plugin?
Categories is the only node which is not selectable in the GraphiQL Editor...
{
allWordpressPost(filter: {categories is not here}) {
edges {
node {
id
categories {
id
}
}
}
}
}
So in the last few days I tried to get only Wordpress posts with a passed variable (id of a category)...
I am creating category sites in gatsby-node, which uses my category template.
Is there a simple way in GraphQL to filter after categories with this plugin?
Categories is the only node which is not selectable in the GraphiQL Editor...