wp-graphql / wp-graphql-tax-query

Adds `tax_query` support to postObject connection queries using WP_Query
46 stars 16 forks source link

terms array is not working as it should #34

Open vstrelianyi opened 1 year ago

vstrelianyi commented 1 year ago

when using the following query:

{operator: IN, taxonomy: CATEGORY, terms: ["91","80"], field: ID},

only posts with last ID in array ( 80 ) are returned


NOTE: when I use SLUG as field like here:

{operator: IN, taxonomy: CATEGORY, terms: ["slug1","slug2"], field: SLUG},

the query returns the correct data

iamlili commented 1 year ago

Fixed in PR https://github.com/wp-graphql/wp-graphql-tax-query/pull/23

Please merge @jasonbahl