From c7a4d27e4410aaf5f0c77d5779e1d0b5b1b0266e Mon Sep 17 00:00:00 2001 From: Lucas Demea Date: Thu, 27 Apr 2023 19:05:48 +0200 Subject: [PATCH] fix: fix queries with multiple conditionals --- wp-graphql-meta-query.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-graphql-meta-query.php b/wp-graphql-meta-query.php index bfe26f6..6079baf 100644 --- a/wp-graphql-meta-query.php +++ b/wp-graphql-meta-query.php @@ -316,9 +316,6 @@ public function map_input_fields( $query_args, $input_args ) { if ( ! empty( $input_args['metaQuery'] ) ) { $meta_query = $input_args['metaQuery']; if ( ! empty( $meta_query['metaArray'] ) && is_array( $meta_query['metaArray'] ) ) { - if ( 2 < count( $meta_query['metaArray'] ) ) { - unset( $meta_query['relation'] ); - } foreach ( $meta_query['metaArray'] as $meta_query_key => $value ) { $meta_query[] = [ $meta_query_key => $value,