--- title: MetafieldReference - GraphQL Admin description: The resource referenced by the metafield value. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/unions/MetafieldReference md: >- https://shopify.dev/docs/api/admin-graphql/unstable/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/unstable/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/unstable/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/unstable/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/unstable/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/unstable/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/unstable/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/unstable/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 ```