wp-graphql / wp-graphql-woocommerce

Add WooCommerce support and functionality to your WPGraphQL server
https://woographql.com
GNU General Public License v3.0
642 stars 130 forks source link

V0.20 Breaks Search: Search does not affect the results #866

Open alejdig opened 4 months ago

alejdig commented 4 months ago

Describe the bug Search Query doesn't search

To Reproduce Steps to reproduce the behavior:

  1. Go to

    query getProducts(
        $after: String, 
        $first: Int, 
        $last: Int, 
    ) {
    products (first: $first last: $last, after: $after, where: {
            search: "foo"
        }) {
             nodes {            
                    ...product                      
        }
     }
    }
    
    fragment product on VariableProduct {
    databaseId
    price(format: FORMATTED)
    name
    description
    stockStatus
    variations {
        nodes {
            name
            description
        }
    }
    }
  2. Click on Send
  3. Change Search
  4. See Search have no effect on Results

Expected behavior The Search should have an effect on the results

Plugin Versions

Additional context This happened after i updated WPGraphQL WooCommerce (WooGraphQL) v0.15.0 to latest 0.2.0

alejdig commented 4 months ago

Hey i just, tried all versions prior to v0.20, it works up to v.0.19 and breaks on v.0.20 Downgrading to v0.019 for the time being.