Skip to main content

Media Object

Description

Represents a media file with metadata and multiple format variants.

Declaration

type Media {
_id: ID
id: Int
title: String
ext: String
url: String
size: Int
width: Int
height: Int
caption: String
mime: String
alt: String
created: Date
formatArray: [MediaFormat!]
formats: MediaFormats
}

Fields

NameTypeDescription
_idIDInternal database identifier.
idIntNumeric identifier for the media item.
titleStringTitle of the media file.
extStringFile extension.
urlStringURL to access the original media file.
sizeIntFile size in bytes.
widthIntWidth of the media in pixels.
heightIntHeight of the media in pixels.
captionStringCaption text for the media.
mimeStringMIME type of the media file.
altStringAlternative text for accessibility.
createdDateDate when the media was created.
formatArray[MediaFormat!]Array of all available format variants.
formatsMediaFormatsOrganized collection of format variants by size.