Skip to content

Commit

Permalink
fix: DownloadableItem "product" field type changed to ProductUnion (#833
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kidunot89 authored Dec 27, 2023
1 parent 6f80c4c commit 17b59fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/type/object/class-downloadable-item-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function register() {
},
],
'product' => [
'type' => 'Product',
'type' => 'ProductUnion',
'description' => __( 'Product of downloadable item.', 'wp-graphql-woocommerce' ),
'resolve' => static function ( $source, array $args, AppContext $context ) {
return Factory::resolve_crud_object( $source['product_id'], $context );
Expand Down

0 comments on commit 17b59fb

Please sign in to comment.