--- title: MetafieldReference - GraphQL Admin description: The resource referenced by the metafield value. api_version: 2026-04 api_name: admin type: union api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/unions/MetafieldReference' md: >- https://shopify.dev/docs/api/admin-graphql/latest/unions/MetafieldReference.md --- # Metafield​Reference union The resource referenced by the metafield value. ## Fields with this union * [Metafield.reference](https://shopify.dev/docs/api/admin-graphql/latest/objects/Metafield#field-Metafield.fields.reference) OBJECT Metafields enable you to attach additional information to a Shopify resource, such as a [Product](https://shopify.dev/api/admin-graphql/latest/objects/product) or a [Collection](https://shopify.dev/api/admin-graphql/latest/objects/collection). For more information about where you can attach metafields refer to [HasMetafields](https://shopify.dev/api/admin-graphql/latest/interfaces/HasMetafields). Some examples of the data that metafields enable you to store are specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, namespace, and key. and store a value along with type information for that value. * [Metafield.references](https://shopify.dev/docs/api/admin-graphql/latest/objects/Metafield#field-Metafield.fields.references) OBJECT Metafields enable you to attach additional information to a Shopify resource, such as a [Product](https://shopify.dev/api/admin-graphql/latest/objects/product) or a [Collection](https://shopify.dev/api/admin-graphql/latest/objects/collection). For more information about where you can attach metafields refer to [HasMetafields](https://shopify.dev/api/admin-graphql/latest/interfaces/HasMetafields). Some examples of the data that metafields enable you to store are specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, namespace, and key. and store a value along with type information for that value. * [Metafield​Reference​Connection.nodes](https://shopify.dev/docs/api/admin-graphql/latest/connections/MetafieldReferenceConnection#returns-nodes) CONNECTION An auto-generated type for paginating through multiple MetafieldReferences. * [Metafield​Reference​Edge.node](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldReferenceEdge#field-MetafieldReferenceEdge.fields.node) OBJECT An auto-generated type which holds one MetafieldReference and a cursor during pagination. * [Metaobject​Field.reference](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetaobjectField#field-MetaobjectField.fields.reference) OBJECT Provides a field definition and the data value assigned to it. * [Metaobject​Field.references](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetaobjectField#field-MetaobjectField.fields.references) OBJECT Provides a field definition and the data value assigned to it. * [Metafield​Relation.target](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldRelation#field-MetafieldRelation.fields.target) OBJECT Deprecated *** ```graphql union MetafieldReference = Article | Collection | Company | Customer | GenericFile | MediaImage | Metaobject | Model3d | Order | Page | Product | ProductVariant | TaxonomyValue | Video ```