Metafield Reference
Returns the resource which is being referred to by a metafield.
Anchor to Possible typesPossible types
- GenericFile (GenericFile)
- MediaImage (MediaImage)
- Metaobject (Metaobject)
- Model3d (Model3d)
- Video (Video)
- •OBJECT
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.
- •String
A word or phrase to indicate the contents of a file.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-nullPre-auth accessible The media content type.
- Anchor to mimeTypemime•String
Type The MIME type of the file.
- Anchor to originalFileSizeoriginal•Int
File Size The size of the original file in bytes.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- •URL
The URL of the file.
- •OBJECT
Represents a Shopify hosted image.
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to imageimage•Image
The image for the media.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-nullPre-auth accessible The media content type.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- •OBJECT
An instance of a user-defined model based on a MetaobjectDefinition.
- Anchor to fieldfield•Metaobject
Field Accesses a field of the object by key.
- •String!required
The key of the field.
Arguments
- •String!
- Anchor to fieldsfields•[Metaobject
Field!]! non-nullPre-auth accessible All object fields with defined values. Omitted object keys can be assumed null, and no guarantees are made about field order.
- Anchor to handlehandle•String!non-nullPre-auth accessible
The unique handle of the metaobject. Useful as a custom ID.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to typetype•String!non-nullPre-auth accessible
The type of the metaobject.
- Anchor to updatedAtupdated•Date
At Time! non-nullPre-auth accessible The date and time when the metaobject was last updated.
- •OBJECT
Represents a Shopify hosted 3D model.
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-nullPre-auth accessible The media content type.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- Anchor to sourcessources•[Model3d
Source!]! non-nullPre-auth accessible The sources for a 3d model.
- •OBJECT
Represents a Shopify hosted video.
- •String
A word or phrase to share the nature or contents of a media.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-nullPre-auth accessible The media content type.
- Anchor to previewImagepreview•Image
Image The preview image for the media.
- Anchor to sourcessources•[Video
Source!]! non-nullPre-auth accessible The sources for a video.
Anchor to Fields with this unionFields with this union
- •OBJECT
The custom metadata attached to a resource. Metafields can be sorted into namespaces and are comprised of keys, values, and value types.
- •OBJECT
The custom metadata attached to a resource. Metafields can be sorted into namespaces and are comprised of keys, values, and value types.
- •CONNECTION
An auto-generated type for paginating through multiple MetafieldReferences.
- •OBJECT
An auto-generated type which holds one MetafieldReference and a cursor during pagination.
- •OBJECT
Provides the value of a Metaobject field.