--- title: Conditional metafields APIs - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/conditional-metafields-apis md: https://shopify.dev/changelog/conditional-metafields-apis.md --- [Back to Developer changelog](https://shopify.dev/changelog) July 1, 2024 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 `constraints` field on `MetafieldDefinition` to view the metafield definition's constraints. * Use the `constraintSubtype` argument on the `metafieldDefinitions` and `standardMetafieldDefinitionTemplates` queries to retrieve only metafield definitions that apply to the passed constraint subtype. * Use the `constraintStatus` argument on the `metafieldDefinitions` and `standardMetafieldDefinitionTemplates` queries to filter based on whether the metafield definitions are constrained. [Learn more about conditional metafields](https://shopify.dev/docs/apps/build/custom-data/metafields/definitions/conditional-metafield-definitions)