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
| Name | Type | Description |
|---|---|---|
_id | ID | Internal database identifier. |
id | Int | Numeric identifier for the media item. |
title | String | Title of the media file. |
ext | String | File extension. |
url | String | URL to access the original media file. |
size | Int | File size in bytes. |
width | Int | Width of the media in pixels. |
height | Int | Height of the media in pixels. |
caption | String | Caption text for the media. |
mime | String | MIME type of the media file. |
alt | String | Alternative text for accessibility. |
created | Date | Date when the media was created. |
formatArray | [MediaFormat!] | Array of all available format variants. |
formats | MediaFormats | Organized collection of format variants by size. |