All Release Notes
Added Product Projections on locales to the GraphQL API
16 May 2023
Composable Commerce
HTTP API
Enhancement
GraphQLProduct catalogProject configuration
We added support for locale-based Product Projection to the product
and products
queries on the GraphQL API. With this projection, your response contains the translation on Products (also in a Store) you have specified in your query only. All other locales are filtered out from the product information.
Furthermore, the projection can also be applied to Products expanded on Reference Type Attributes.
Changes:
- [GraphQL API] Changed the
Query
type:- Argument
localeProjection
was added toQuery.products
field - Argument
localeProjection
was added toQuery.product
field - Argument
projectExpandedProducts
was added toQuery.productProjectionSearch
field - Argument
projectExpandedProducts
was added toQuery.product
field - Argument
projectExpandedProducts
was added toQuery.products
field
- Argument
- [GraphQL API] Changed the
InStore
type:- Arguments
localeProjection
was added toInStore.product
field - Argument
projectExpandedProducts
was added toInStore.product
field
- Arguments