Improve PromotionRule.gifts
field by returning ProductVariant
types instead of IDs.
#15285
Labels
PromotionRule.gifts
field by returning ProductVariant
types instead of IDs.
#15285
After implementing this, field
PromotionRule.gifts
returns a list ofProductVariant
IDs:Would be good to return ProductVariant types instead, like:
The problem is
ProductVariant
type exists in channel context andPromotionRule
can be assocciated with multiple channels.One of the solution is to return some kind of narrowed
ProductVariant
type, which excludes all the fields, which derive fromProductVariantChannelListing
.The text was updated successfully, but these errors were encountered: