Skip to content

Automatic support for many-to-many fields through linked node creation in source plugins #3190

Description

@flmuel

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
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions