Create and manage metafields

This section describes how to use the GraphQL Admin API to create and manage metafields. To learn about creating and managing metafields using the REST Admin API, refer to the Metafield resource documentation.

If you want to include data validation for metafield values, then you can create metafield definitions. If you want metafields that aren't accessible to merchants or other apps, then you can create private metafields.

If you need to update your metafields that use the deprecated value_type field, refer to Metafield value_type deprecation.