Skip to content

Multiple Taxonomy Query #400

@thatONEjustin

Description

@thatONEjustin

Is your feature request related to a problem? Please describe.
Currently the wp-graphql-woocommerce plugin only supports finding products by a single taxonomy.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Currently you can only search products on a single taxonomy as follows:

query MyQuery {
  products(where: {categoryIn: "womens", taxonomyFilter: {or: {taxonomy: PACOUNTRY, terms:"USA"}}}) {
    edges {
      node {
        name
      }
    }
  }
}

Describe alternatives you've considered
Would like to search multiple taxonomies with an array:

query MyQuery {
  products(where: {categoryIn: "womens", taxonomyFilter: {or: [{taxonomy: PACOUNTRY, terms:"USA"}, {taxonomy: PAFRAMECOLOR, terms:"Black"}] }}) {
    edges {
      node {
        name
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions