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

type GET_search_company_Root {
  page: Int
  results: [GET_search_company_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_search_company(
    query: String
    tmdb_access_token: String!
  ): GET_search_company_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/search/company"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
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;" }]
    )
}
