-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: WPGraphQL v1.24.x support added
- Loading branch information
Showing
22 changed files
with
1,379 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
includes/type/input/class-product-attribute-query-input.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* WPInputObjectType - ProductAttributeQueryInput | ||
* | ||
* @package WPGraphQL\WooCommerce\Type\WPInputObject | ||
* @since TBD | ||
*/ | ||
|
||
namespace WPGraphQL\WooCommerce\Type\WPInputObject; | ||
|
||
/** | ||
* Class Product_Attribute_Query_Input | ||
*/ | ||
class Product_Attribute_Query_Input { | ||
/** | ||
* Registers type | ||
* | ||
* @return void | ||
*/ | ||
public static function register() { | ||
register_graphql_input_type( | ||
'ProductAttributeQueryInput', | ||
[ | ||
'description' => __( 'Product filter', 'wp-graphql-woocommerce' ), | ||
'fields' => [ | ||
'queries' => [ | ||
'type' => [ 'list_of' => 'ProductAttributeFilterInput' ], | ||
'description' => __( 'Limit result set to products with selected global attributes.', 'wp-graphql-woocommerce' ), | ||
], | ||
'relation' => [ | ||
'type' => 'AttributeOperatorEnum', | ||
'description' => __( 'The logical relationship between attributes when filtering across multiple at once.', 'wp-graphql-woocommerce' ), | ||
], | ||
], | ||
] | ||
); | ||
} | ||
} |
Oops, something went wrong.