MediaImage - admin-graphql - OBJECT
Version: 2024-04
Description:
An image hosted on Shopify.
Access Scopes
`read_products` access scope, `read_files` access scope, `read_themes` access scope, `read_orders` access scope, `read_draft_orders` access scope or `read_images` access scope.
Fields
alt :
String -
A word or phrase to share the nature or contents of a media.
createdAt :
DateTime! -
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) when the file was created.
fileErrors :
FileError! -
Any errors that have occurred on the file.
fileStatus :
FileStatus! -
The status of the file.
id :
ID! -
A globally-unique ID.
image :
Image -
The image for the media. Returns `null` until `status` is `READY`.
mediaContentType :
MediaContentType! -
The media content type.
mediaErrors :
MediaError! -
Any errors which have occurred on the media.
mediaWarnings :
MediaWarning! -
The warnings attached to the media.
metafield :
Metafield -
A [custom field](https://shopify.dev/docs/apps/build/custom-data),
including its `namespace` and `key`, that's associated with a Shopify resource
for the purposes of adding and storing additional information.
mimeType :
String -
The MIME type of the image.
originalSource :
MediaImageOriginalSource -
The original source of the image.
preview :
MediaPreviewImage -
The preview image for the media.
privateMetafield :
PrivateMetafield -
Returns a private metafield by namespace and key that belongs to the resource.
status :
MediaStatus! -
Current status of the media.
updatedAt :
DateTime! -
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) when the file was last updated.
Connections
Related queries
Related mutations
Related Unions
Examples