type GET_company__company_id_Root {
  description: String
  headquarters: String
  homepage: String
  id: Int
  logo_path: String
  name: String
  origin_country: String
  """
  Field "parent_company" is defined as JSON since its value was always 'null'
  """
  parent_company: JSON
}

type Query {
  GET_company__company_id_(
    company_id: String!
    tmdb_access_token: String!
  ): GET_company__company_id_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/company/$company_id;"
      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: Date
  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_GenresEntry {
  id: Int
  name: String
}

type GET_movie__movie_id_ProductionCompaniesEntry {
  id: Int
  logo_path: String
  name: String
  origin_country: String
}

type GET_movie__movie_id_ProductionCountriesEntry {
  iso_3166_1: String
  name: String
}

type GET_movie__movie_id_Root {
  adult: Boolean
  backdrop_path: String
  """
  Field "belongs_to_collection" is defined as JSON since its value was always 'null'
  """
  belongs_to_collection: JSON
  budget: Int
  genres: [GET_movie__movie_id_GenresEntry]
  homepage: String
  id: Int
  imdb_id: String
  origin_country: [String]
  original_language: String
  original_title: String
  overview: String
  popularity: Float
  poster_path: String
  production_companies: [GET_movie__movie_id_ProductionCompaniesEntry]
  production_countries: [GET_movie__movie_id_ProductionCountriesEntry]
  release_date: Date
  revenue: Int
  runtime: Int
  spoken_languages: [GET_movie__movie_id_SpokenLanguagesEntry]
  status: String
  tagline: String
  title: String
  video: Boolean
  vote_average: Float
  vote_count: Int
}

type GET_movie__movie_id_SpokenLanguagesEntry {
  english_name: String
  iso_639_1: String
  name: String
}

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