Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alejdig opened this issue May 31, 2024 · 1 comment
Open

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

alejdig opened this issue May 31, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@alejdig
Copy link

alejdig commented May 31, 2024

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
		}
	}
}
  1. Click on Send
  2. Change Search
  3. See Search have no effect on Results

Expected behavior
The Search should have an effect on the results

Plugin Versions

  • WPGraphQL Version: 1.26.0
  • WordPress Version: 6.5.3
  • WooCommerce Version: 8.8.3
  • WooCommerce (WooGraphQL): 0.2.0

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

@alejdig
Copy link
Author

alejdig commented May 31, 2024

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.

@alejdig alejdig changed the title Search param does not have an effect on the results V0.20 Breaks Search: Search does not affect the results May 31, 2024
@kidunot89 kidunot89 added the bug Something isn't working label Jun 10, 2024
@kidunot89 kidunot89 modified the milestones: v0.19.1, v0.20.1 Jun 10, 2024
@kidunot89 kidunot89 modified the milestones: v0.20.1, v0.21.1 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants