type GET_person__person_id__images_ProfilesEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  """
  Field "iso_639_1" is defined as JSON since its value was always 'null'
  """
  iso_639_1: JSON
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_person__person_id__images_Root {
  id: Int
  profiles: [GET_person__person_id__images_ProfilesEntry]
}

type Query {
  GET_person__person_id__images(
    person_id: String!
    tmdb_access_token: String!
  ): GET_person__person_id__images_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/person/$person_id;/images"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_search_movie_ResultsEntry {
  adult: Boolean
  backdrop_path: String
  genre_ids: [Int]
  id: Int
  original_language: String
  original_title: String
  overview: String
  popularity: Float
  poster_path: String
  release_date: String
  title: String
  video: Boolean
  vote_average: Float
  vote_count: Int
}

type GET_search_movie_Root {
  page: Int
  results: [GET_search_movie_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_search_movie(
    query: String
    tmdb_access_token: String!
  ): GET_search_movie_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/search/movie"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_movie__movie_id__credits_CastEntry {
  adult: Boolean
  cast_id: Int
  character: String
  credit_id: String
  gender: Int
  id: Int
  known_for_department: String
  name: String
  order: Int
  original_name: String
  popularity: Float
  profile_path: String
}

type GET_movie__movie_id__credits_CrewEntry {
  adult: Boolean
  credit_id: String
  department: String
  gender: Int
  id: Int
  job: String
  known_for_department: String
  name: String
  original_name: String
  popularity: Float
  profile_path: String
}

type GET_movie__movie_id__credits_Root {
  cast: [GET_movie__movie_id__credits_CastEntry]
  crew: [GET_movie__movie_id__credits_CrewEntry]
  id: Int
}

type Query {
  GET_movie__movie_id__credits(
    movie_id: String!
    tmdb_access_token: String!
  ): GET_movie__movie_id__credits_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/movie/$movie_id;/credits"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
