OBJECT

Media

Media

link GraphQL Schema definition

  • type Media {
  • # Id
  • id: Int!
  • # URL of the thumbnail
  • thumbnail: String
  • # File name
  • filename: String!
  • # The full-path to the file
  • fullpathFilename: String!
  • # The relative full-path to the file (without domain)
  • relativeFullpathFilename: String!
  • # File name of the uploaded Media
  • originalFilename: String
  • # File name of the uploaded Media (slugged version)
  • originalFilenameSlugged: String
  • # Translations
  • translations: [MediaTranslation!]!
  • # An ISO 639-1 valid locale, e.g.: fr, en, pt, ...
  • defaultLocale: String
  • # Description
  • description: String @deprecated( reason: "Please use "translations" field instead." )
  • # Title
  • title: String @deprecated( reason: "Please use "translations" field instead." )
  • # Is the Media visible?
  • visible: Boolean!
  • # Date of creation
  • createdAt: DateTime
  • # Date of last update
  • updatedAt: DateTime
  • # Mime type
  • mimeType: String!
  • # Type
  • type: String!
  • # Size
  • size: Int!
  • # Extension
  • extension: String!
  • # If an image, return its width
  • imageWidth: Int
  • # If an image, return its height
  • imageHeight: Int
  • # Category
  • categories: [MediaCategory]!
  • # Link url
  • linkUrl: 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
  • generatedImageUrlWithFormat(
  • format: String,
  • absoluteUrl: Boolean
  • ): String
  • # Articles where this media appears
  • articles: [Article]
  • # Articles Categories where this media appears
  • articlesCategories: [Category]!
  • # Contact forms where this media appears
  • contactForms: [ContactForm]!
  • # Locations where this media appears
  • locations: [Location]!
  • # Sites where this media appears
  • sites: [PublicSite]!
  • # TeamWorkers that reference this media
  • teamWorkers: [TeamWorker]!
  • # ImageSlider that reference this media
  • imageSlider: [ImageSlider]!
  • # Site that own this Media.
  • site: Site
  • # Site that own this ImagineList, without access checks.
  • sitePublic: PublicSite
  • # Inheritance status
  • inheritanceStatus: String!
  • # Media parent, if exists
  • parent: Media
  • }