type GET_me_following_Artists {
  cursors: GET_me_following_Cursors
  href: String
  items: [GET_me_following_ItemsEntry]
  limit: Int
  """
  Field "next" is defined as JSON since its value was always 'null'
  """
  next: JSON
  total: Int
}

type GET_me_following_Cursors {
  """
  Field "after" is defined as JSON since its value was always 'null'
  """
  after: JSON
}

type GET_me_following_ExternalUrls {
  spotify: String
}

type GET_me_following_Followers {
  """
  Field "href" is defined as JSON since its value was always 'null'
  """
  href: JSON
  total: Int
}

type GET_me_following_ImagesEntry {
  height: Int
  url: String
  width: Int
}

type GET_me_following_ItemsEntry {
  external_urls: GET_me_following_ExternalUrls
  followers: GET_me_following_Followers
  genres: [String]
  href: String
  id: String
  images: [GET_me_following_ImagesEntry]
  name: String
  popularity: Int
  type: String
  uri: String
}

type GET_me_following_Root {
  artists: GET_me_following_Artists
}

type Query {
  GET_me_following(
    spotify_access_token: String!
    type: String
  ): GET_me_following_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/me/following"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
type GET_artists__id__related_artists_ArtistsEntry {
  external_urls: GET_artists__id__related_artists_ExternalUrls
  followers: GET_artists__id__related_artists_Followers
  genres: [String]
  href: String
  id: String
  images: [GET_artists__id__related_artists_ImagesEntry]
  name: String
  popularity: Int
  type: String
  uri: String
}

type GET_artists__id__related_artists_ExternalUrls {
  spotify: String
}

type GET_artists__id__related_artists_Followers {
  """
  Field "href" is defined as JSON since its value was always 'null'
  """
  href: JSON
  total: Int
}

type GET_artists__id__related_artists_ImagesEntry {
  height: Int
  url: String
  width: Int
}

type GET_artists__id__related_artists_Root {
  artists: [GET_artists__id__related_artists_ArtistsEntry]
}

type Query {
  GET_artists__id__related_artists(
    id: String!
    spotify_access_token: String!
  ): GET_artists__id__related_artists_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/artists/$id;/related-artists"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
