Returns the resource which is being referred to by a metafield.


value-collection
object
Access requirements

A collection represents a grouping of products that a shop owner can create to organize them or make their shops easier to browse.

value-genericfile
object
Access requirements

The generic file resource lets you manage files in a merchant’s store. Generic files include any file that doesn’t fit into a designated type such as image or video. Example: PDF, JSON.

value-mediaimage
object
Access requirements

Represents a Shopify hosted image.

value-metaobject
object
Access requirements

An instance of a user-defined model based on a MetaobjectDefinition.

value-page
object
Access requirements

Shopify merchants can create pages to hold static HTML content. Each Page object represents a custom page on the online store.

value-product
object
Access requirements

A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be. For example, a digital download (such as a movie, music or ebook file) also qualifies as a product, as do services (such as equipment rental, work for hire, customization of another product or an extended warranty).

value-productvariant
object
Access requirements

A product variant represents a different version of a product, such as differing sizes or differing colors.

value-video
object
Access requirements

Represents a Shopify hosted video.


Was this section helpful?

Returns a reference object if the metafield's type is a resource reference.

A list of reference objects if the metafield's type is a resource reference list.

A list of the nodes contained in MetafieldReferenceEdge.

The item at the end of MetafieldReferenceEdge.

A referenced object if the field type is a resource reference.

A list of referenced objects if the field type is a resource reference list.


Was this section helpful?
union MetafieldReference = Collection | GenericFile | MediaImage | Metaobject | Page | Product | ProductVariant | Video