Metafield definitions

Metafield definitions enable you to include data validation for metafields, and enable merchants to add metafield values for resources in the Shopify admin. We also provide standard metafield definitions for common use cases. Using standard definitions means that your app can access information that merchants might have already stored in these metafields and provides interoperability across the Shopify platform.

If you want to create and manage custom metafield definitions with your app, then you can use the GraphQL Admin API as described in the following sections. If you're helping a merchant to build their store, and you want to set up metafields in the Shopify admin, then refer to the merchant documentation about metafields.

Metafield definitions are available in GraphQL Admin API version 2021-10 or later.