File tree Expand file tree Collapse file tree
src/gql/interfaces/elements Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1414use craft \commerce \helpers \Gql ;
1515use craft \gql \GqlEntityRegistry ;
1616use craft \gql \interfaces \Element ;
17- use craft \gql \interfaces \elements \Entry as EntryInterface ;
1817use craft \services \Gql as GqlService ;
1918use GraphQL \Type \Definition \InterfaceType ;
2019use 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 ],
You can’t perform that action at this time.
0 commit comments