lowsky / spotify-graphql-server

A simple graphql server for spotify data, see blog
https://blog.codecentric.de/en/2017/01/lets-build-spotify-graphql-server/
57 stars 17 forks source link

tracks of albums are not loaded #3

Open lowsky opened 7 years ago

lowsky commented 7 years ago

List of tracks is always empty, eg:

https://spotify-graphql-server.herokuapp.com/graphql?query=%7B%0A%20%20queryArtists(byName%3A%20%22Red%20Hot%20Chili%20Peppers%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20albums%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20id%0A%20%20%20%20%20%20tracks%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A

results in

{
  "data": {
    "queryArtists": [
      {
        "name": "Red Hot Chili Peppers",
        "albums": [
          {
            "name": "The Getaway",
            "id": "43otFXrY0bgaq5fB3GrZj6",
            "tracks": []
          },
          {
            "name": "I'm With You",
            "id": "5wZtSIvijWCMc1vlPFqAyB",
            "tracks": []
          },
          {
            "name": "Stadium Arcadium (U.S. Version)",
            "id": "7xl50xr9NDkd3i2kBbzsNZ",
            "tracks": []
          },
          {
            "name": "By The Way (Deluxe Version)",
            "id": "6deiaArbeoqp1xPEGdEKp1",
            "tracks": []
          },
          {
            "name": "By The Way (U.S. Version)",
            "id": "1jWKVgnHX8nwR551hQNx5K",
            "tracks": []
          },
...
      },
lowsky commented 6 years ago

To reduce too much requests sent to spotify, I want to introduce dataloader first: issue #56