Skip to main content

MediaOrderBy

The MediaOrderBy enum defines the available fields for sorting media queries.

Schema Definition

enum MediaOrderBy {
CREATED_AT
UPDATED_AT
FILE_TYPE
MEDIA_TYPE
TOKEN_ID
CONTRACT
NAME
}

Values

ValueDescription
CREATED_ATSort by creation Unix timestamp in seconds. Orders media items based on when they were first created in our system.
UPDATED_ATSort by last update Unix timestamp in seconds. Orders media items based on the time of their most recent update in our system.
FILE_TYPESort by the FileType enum value of the media file (e.g., IMAGE_PNG, VIDEO_MP4). Orders media items alphabetically based on their FileType enum value.
MEDIA_TYPESort by the MediaType enum value of the media file (e.g., IMAGE, VIDEO, AUDIO). Orders media items alphabetically based on their MediaType enum value.
TOKEN_IDSort by unique identifier of the token associated with the media numerically.
CONTRACTSort by address of the contract managing the token associated with the media alphabetically.
NAMESort by name of the token associated with the media alphabetically.

Member Of

mediaList query