OBJECT

Photo

A photo associated with the model as well as some basic metadata including label and dimensions.

link GraphQL Schema definition

  • type Photo implements Asset {
  • model: Model
  • id: ID!
  • status: AssetStatus
  • filename: String
  • format: String!
  • url: String
  • # If populated, the url is only valid until the time given
  • validUntil: DateTime
  • # If the image supports multiple resolutions this may be used to retrieve the
  • # image at an alternative resolution.
  • #
  • # Arguments
  • # resolution: Selects the resolution of the image to retrieve.
  • # The resolution
  • # must be in the `resolutions` list.
  • # Default: "original"
  • resizeUrl(resolution: PhotoResolution!): String
  • # A set of resolutions the image is available at.
  • resolutions: [PhotoResolution!]
  • # A user assigned name for this photo.
  • # If unspecified this will default to the label.
  • name: String
  • # An autogenerated label for the image.
  • label: String
  • # The height of the image in pixels.
  • height: Int
  • # The width of the image in pixels.
  • width: Int
  • }