OBJECT
Media
Media
link GraphQL Schema definition
- type Media {
- # Id
- : Int!
- # URL of the thumbnail
- : String
- # File name
- : String!
- # The full-path to the file
- : String!
- # The relative full-path to the file (without domain)
- : String!
- # File name of the uploaded Media
- : String
- # File name of the uploaded Media (slugged version)
- : String
- # Translations
- : [MediaTranslation!]!
- # An ISO 639-1 valid locale, e.g.: fr, en, pt, ...
- : String
- # Description
- : String @deprecated( reason: "Please use "translations" field instead." )
- # Title
- : String @deprecated( reason: "Please use "translations" field instead." )
- # Is the Media visible?
- : Boolean!
- # Date of creation
- : DateTime
- # Date of last update
- : DateTime
- # Mime type
- : String!
- # Type
- : String!
- # Size
- : Int!
- # Extension
- : String!
- # If an image, return its width
- : Int
- # If an image, return its height
- : Int
- # Category
- : [MediaCategory]!
- # Link url
- : String
- # Apply on-the-fly the given format to the media. If the media is not an image, it
- # returns null. (ex: generatedImageUrlWithFormat(format: 'Sw700'))
- #
- # Arguments
- # format: The format can be a pre-defined format:
- #
- # Sw40, Sw100, Sw229, Sw500, Sw687, Sw700, Sw1500: SwX where X is a fixed width in
- # pixels. The image ratio is maintained. Sh16, Sh30, Sh60, Sh75, Sh90, Sh350: ShY
- # where Y is a fixed height in pixels. The image ratio is maintained.
- # media_ratio_4_3_300: 400x300 media_ratio_16_9_250: 445x250 thumbnail_100x100:
- # 100x100 thumbnail: 200x200 icon: 16x16 TX_Y: custom format where X is a fixed
- # width in pixels and Y is a fixed height in pixels
- # absoluteUrl: Should returns an absolute URL
- (
- : String,
- : Boolean
- ): String
- # Articles where this media appears
- : [Article]
- # Articles Categories where this media appears
- : [Category]!
- # Contact forms where this media appears
- : [ContactForm]!
- # Locations where this media appears
- : [Location]!
- # Sites where this media appears
- : [PublicSite]!
- # TeamWorkers that reference this media
- : [TeamWorker]!
- # ImageSlider that reference this media
- : [ImageSlider]!
- # Site that own this Media.
- : Site
- # Site that own this ImagineList, without access checks.
- : PublicSite
- # Inheritance status
- : String!
- # Media parent, if exists
- : Media
- }