Tags:
- Admin GraphQL API
- 2024-07
Conditional metafields APIs
As of 2024-07, we've added APIs for viewing and filtering conditional metafield definitions such as product attributes:
- Use the
constraintsfield onto view the metafield definition's constraints. - Use the
argument on theandqueries to retrieve only metafield definitions that apply to the passed constraint subtype. - Use the
argument on theandqueries to filter based on whether the metafield definitions are constrained.
Was this section helpful?