OBJECT

MediaItem

link GraphQL Schema definition

  • type MediaItem implements Node {
  • id: ID!
  • # [Deprecated] The public ID in Cloudinary of the media item.
  • publicID: String!
  • # The width of the media item in pixels.
  • width: Int!
  • # The height of the media item in pixels.
  • height: Int!
  • # The size of the media item in bytes.
  • bytes: Int!
  • # The format of the media item. ie jpg, png, gif, etc.
  • format: String!
  • # The type of media item. Will be image or video
  • mediaType: String!
  • # The URL of the media item.
  • url: String!
  • # The original filename of the media item.
  • originalFilename: String!
  • ordinal: Int!
  • # The duration of the media item in seconds.
  • duration: Int
  • # The post that the media item belongs to.
  • post: Post
  • }