Asset type represents media files (images, videos, documents) stored in Metabind with CDN-delivered URLs.
Type Definition
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
name | String! | File name |
description | String! | Asset description |
type | String! | MIME type |
url | String! | CDN URL for the asset |
size | Int! | File size in bytes |
width | Int | Image width in pixels (images only) |
height | Int | Image height in pixels (images only) |
tags | [String!]! | Tags for categorization |
createdAt | DateTime! | Upload timestamp |
updatedAt | DateTime! | Last update timestamp |
Field Details
type
The MIME type of the asset:| Type | Description |
|---|---|
image/jpeg | JPEG images |
image/png | PNG images |
image/gif | GIF images |
image/webp | WebP images |
image/svg+xml | SVG graphics |
video/mp4 | MP4 videos |
video/webm | WebM videos |
application/pdf | PDF documents |
url
Assets are served from the Metabind CDN with automatic optimization:width and height
Image dimensions are automatically extracted during upload. These fields arenull for non-image assets.
