type GET_search_tv_ResultsEntry {
  adult: Boolean
  backdrop_path: String
  first_air_date: String
  genre_ids: [Int]
  id: Int
  name: String
  origin_country: [String]
  original_language: String
  original_name: String
  overview: String
  popularity: Float
  poster_path: String
  vote_average: Float
  vote_count: Int
}

type GET_search_tv_Root {
  page: Int
  results: [GET_search_tv_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_search_tv(query: String, tmdb_access_token: String!): GET_search_tv_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/search/tv"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_tv__tv_id__season__season_number__images_PostersEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  iso_639_1: String
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_tv__tv_id__season__season_number__images_Root {
  id: Int
  posters: [GET_tv__tv_id__season__season_number__images_PostersEntry]
}

type Query {
  GET_tv__tv_id__season__season_number__images(
    season_number: String!
    tmdb_access_token: String!
    tv_id: String!
  ): GET_tv__tv_id__season__season_number__images_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/tv/$tv_id;/season/$season_number;/images"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
