All Release Notes
Added support to query all Product Variants in Product Projection Search in GraphQL
19 December 2024
Composable Commerce
HTTP API
Enhancement
Product catalogGraphQL
You can now fetch all Product Variants in productProjectionSearch
queries in the GraphQL API. Previously, you had to use the masterVariant
and variants
separately to fetch all Product Variants.
Changes:
- [GraphQL API] Added the
allVariants
field to theProductProjection
type.
The following changes were introduced in terms of GraphQL SDL:
extend type ProductProjection {"Fetch all variants, including the master variant in first position."allVariants: [ProductSearchVariant!]!}