type GET_me_top__type_Root {
  href: String
  items: [JSON]
  limit: Int
  """
  Field "next" is defined as JSON since its value was always 'null'
  """
  next: JSON
  offset: Int
  """
  Field "previous" is defined as JSON since its value was always 'null'
  """
  previous: JSON
  total: Int
}

type Query {
  GET_me_top__type_(
    spotify_access_token: String!
    type: String!
  ): GET_me_top__type_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/me/top/$type;"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
