Skip to content

Commit bb818f3

Browse files
committed
Fixed #4122 typo in GQL product interface
1 parent f231d4a commit bb818f3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft Commerce
22

3+
## Unreleased
4+
5+
- Fixed an error that could occur when querying for products or variants via GraphQL. ([#4122](https://github.com/craftcms/commerce/issues/4122))
6+
37
## 5.5.0 - 2025-11-18
48

59
### Store Management

src/gql/interfaces/elements/Product.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use craft\commerce\helpers\Gql;
1515
use craft\gql\GqlEntityRegistry;
1616
use craft\gql\interfaces\Element;
17-
use craft\gql\interfaces\elements\Entry as EntryInterface;
1817
use craft\services\Gql as GqlService;
1918
use GraphQL\Type\Definition\InterfaceType;
2019
use GraphQL\Type\Definition\Type;
@@ -164,7 +163,7 @@ public static function getFieldDefinitions(): array
164163
'parent' => [
165164
'name' => 'parent',
166165
'args' => $structureProductTypeFieldArguments,
167-
'type' => EntryInterface::getType(),
166+
'type' => static::getType(),
168167
'description' => 'The products’s parent, if the product type is a structure.',
169168
'complexity' => Gql::relatedArgumentComplexity(GqlService::GRAPHQL_COMPLEXITY_EAGER_LOAD),
170169
],

0 commit comments

Comments
 (0)