Skip to content

Commit 17b59fb

Browse files
authored
fix: DownloadableItem "product" field type changed to ProductUnion (#833)
1 parent 6f80c4c commit 17b59fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/type/object/class-downloadable-item-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function register() {
7676
},
7777
],
7878
'product' => [
79-
'type' => 'Product',
79+
'type' => 'ProductUnion',
8080
'description' => __( 'Product of downloadable item.', 'wp-graphql-woocommerce' ),
8181
'resolve' => static function ( $source, array $args, AppContext $context ) {
8282
return Factory::resolve_crud_object( $source['product_id'], $context );

0 commit comments

Comments
 (0)