-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cannot get the metaQuery to run multiple conditionals. There's a bug with map_input_fields. #6
Comments
@ytwguru can you provide an example of the GraphQL query you were trying to make when you noticed this so that I can replicate? |
For context.
Here's the query.
The query should list current events. |
Same Issue here, with this kind of query :
Where I'm using wpgraphql 1.5.9 because of this other issue. |
It works again if I remove these lines : if ( 2 < count( $meta_query['metaArray'] ) ) {
unset( $meta_query['relation'] );
} |
Probably due to a change in the version, but queries using the metaArray don't work correctly when querying a large conditional statement.
I inspected the meta_query generated and it looks like the code below seems to be causing the issue. (It can be deleted and the function can be modified)
The output below is from of the meta_query generated from the current (unchanged code)
The text was updated successfully, but these errors were encountered: