Edit in GitHubLog an issue

Product interfaces and attributes

Any type that implements ProductInterface contains all the base attributes necessary for the frontend of the product model. The items that are returned in a ProductInterface array can also contain attributes from resources external to the CatalogGraphQl module:

Deprecated interfaces

The following interfaces are available only if you have installed the PWA Metapackage for Magento Open Source Extensions. This metapackage has been deprecated.

Sample query

The custom_attributesV2 attribute is defined in ProductInterface. In this example, the attribute's filters object determines which custom attributes will be used to narrow the results when using products query. It contains at least one attribute and the value that is being searched for. The following example searches for custom attributes of a product where is_comparable is true.

Copied to your clipboard
{
products(filter: {sku: {eq: "24-MB02"}})
{
items
{
custom_attributesV2(filters: {is_comparable: true}) {
items {
code
}
errors {
type
message
}
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.